chore(deps): Core-Pakete auf Version 2.0.0.0 aktualisiert

This commit is contained in:
Developer 02
2024-09-19 16:41:40 +02:00
parent 025a21d13a
commit 3665a20841
8 changed files with 28 additions and 15 deletions

View File

@@ -8,7 +8,8 @@ namespace DigitalData.EmailProfilerDispatcher
{
public static class DIExtensions
{
public static IServiceCollection AddDispatcher<TDbContext>(this IServiceCollection services) where TDbContext : DbContext => services
public static IServiceCollection AddDispatcher<TDbContext>(this IServiceCollection services) where TDbContext : DbContext, IMailDbContext
=> services
.AddScoped<IEmailOutRepository, EmailOutRepository<TDbContext>>()
.AddAutoMapper(typeof(MappingProfile).Assembly)
.AddScoped<IEmailOutService, EmailOutService>();