Refactor DI and update namespace structure
Removed `AddMessagingServiceApplication` method from `DependencyInjection` class, simplifying service configuration. Updated namespaces from `DigitalData.MessagingService.Infrastructure` to `DigitalData.MessagingService.Infrastructure.DependencyInjection` for better organization. Adjusted `Program.cs` to use a lambda for setting `LuckyPennySoftLicenseKey`. Updated `using` directives in `EmailSyncWorker.cs` and `Program.cs` to reflect these changes.
This commit is contained in:
@@ -38,14 +38,5 @@ public static class DependencyInjection
|
||||
|
||||
return services;
|
||||
}
|
||||
|
||||
public static IServiceCollection AddMessagingServiceApplication(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
return services.AddMessagingServiceApplication(cfg =>
|
||||
{
|
||||
cfg.SetLuckyPennySoftLicenseKey(configuration);
|
||||
cfg.ConfigureEmailAccounts(configuration);
|
||||
});
|
||||
}
|
||||
}
|
||||
#endif
|
||||
Reference in New Issue
Block a user