2024-04-18 01:44:37 +02:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
|
using Serilog.Core;
|
2024-11-20 01:45:48 +01:00
|
|
|
|
using Wino.Authentication;
|
2024-04-18 01:44:37 +02:00
|
|
|
|
using Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
using Wino.Core.Integration.Processors;
|
|
|
|
|
|
using Wino.Core.Services;
|
2025-02-15 12:53:32 +01:00
|
|
|
|
using Wino.Core.Synchronizers.ImapSync;
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class CoreContainerSetup
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void RegisterCoreServices(this IServiceCollection services)
|
|
|
|
|
|
{
|
|
|
|
|
|
var loggerLevelSwitcher = new LoggingLevelSwitch();
|
|
|
|
|
|
|
|
|
|
|
|
services.AddSingleton(loggerLevelSwitcher);
|
2024-11-30 23:05:07 +01:00
|
|
|
|
services.AddSingleton<ISynchronizerFactory, SynchronizerFactory>();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
2024-06-02 21:35:03 +02:00
|
|
|
|
services.AddTransient<IGmailChangeProcessor, GmailChangeProcessor>();
|
|
|
|
|
|
services.AddTransient<IImapChangeProcessor, ImapChangeProcessor>();
|
2024-05-25 17:00:52 +02:00
|
|
|
|
services.AddTransient<IOutlookChangeProcessor, OutlookChangeProcessor>();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
services.AddTransient<IWinoRequestProcessor, WinoRequestProcessor>();
|
|
|
|
|
|
services.AddTransient<IWinoRequestDelegator, WinoRequestDelegator>();
|
|
|
|
|
|
services.AddTransient<IImapTestService, ImapTestService>();
|
|
|
|
|
|
services.AddTransient<IAuthenticationProvider, AuthenticationProvider>();
|
|
|
|
|
|
services.AddTransient<IAutoDiscoveryService, AutoDiscoveryService>();
|
|
|
|
|
|
services.AddTransient<IFontService, FontService>();
|
2024-05-02 00:21:29 +02:00
|
|
|
|
services.AddTransient<IUnsubscriptionService, UnsubscriptionService>();
|
2024-08-05 00:36:26 +02:00
|
|
|
|
services.AddTransient<IOutlookAuthenticator, OutlookAuthenticator>();
|
|
|
|
|
|
services.AddTransient<IGmailAuthenticator, GmailAuthenticator>();
|
2025-02-15 12:53:32 +01:00
|
|
|
|
|
|
|
|
|
|
services.AddTransient<IImapSynchronizationStrategyProvider, ImapSynchronizationStrategyProvider>();
|
|
|
|
|
|
services.AddTransient<CondstoreSynchronizer>();
|
|
|
|
|
|
services.AddTransient<QResyncSynchronizer>();
|
|
|
|
|
|
services.AddTransient<UidBasedSynchronizer>();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|