2024-11-30 23:05:07 +01:00
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
|
|
|
|
using Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
2025-02-16 14:38:53 +01:00
|
|
|
namespace Wino.Services;
|
|
|
|
|
|
|
|
|
|
public static class ServicesContainerSetup
|
2024-11-30 23:05:07 +01:00
|
|
|
{
|
2025-02-16 14:38:53 +01:00
|
|
|
public static void RegisterSharedServices(this IServiceCollection services)
|
2024-11-30 23:05:07 +01:00
|
|
|
{
|
2025-02-16 14:38:53 +01:00
|
|
|
services.AddSingleton<ITranslationService, TranslationService>();
|
|
|
|
|
services.AddSingleton<IDatabaseService, DatabaseService>();
|
2025-02-16 11:43:30 +01:00
|
|
|
|
2025-02-16 14:38:53 +01:00
|
|
|
services.AddSingleton<IApplicationConfiguration, ApplicationConfiguration>();
|
|
|
|
|
services.AddSingleton<IWinoLogger, WinoLogger>();
|
|
|
|
|
services.AddSingleton<ILaunchProtocolService, LaunchProtocolService>();
|
2026-04-14 01:23:39 +02:00
|
|
|
services.AddSingleton<IShareActivationService, ShareActivationService>();
|
2025-02-16 14:38:53 +01:00
|
|
|
services.AddSingleton<IMimeFileService, MimeFileService>();
|
2026-02-15 02:20:18 +01:00
|
|
|
services.AddSingleton<ICalendarIcsFileService, CalendarIcsFileService>();
|
2026-02-07 19:47:21 +01:00
|
|
|
services.AddTransient<IMimeStorageService, MimeStorageService>();
|
2025-02-16 11:43:30 +01:00
|
|
|
|
2025-02-16 14:38:53 +01:00
|
|
|
services.AddTransient<ICalendarService, CalendarService>();
|
|
|
|
|
services.AddTransient<IMailService, MailService>();
|
2026-04-15 01:18:07 +02:00
|
|
|
services.AddTransient<IMailCategoryService, MailCategoryService>();
|
2026-04-11 21:02:51 +02:00
|
|
|
services.AddTransient<ISentMailReceiptService, SentMailReceiptService>();
|
2025-02-16 14:38:53 +01:00
|
|
|
services.AddTransient<IFolderService, FolderService>();
|
|
|
|
|
services.AddTransient<IAccountService, AccountService>();
|
|
|
|
|
services.AddTransient<IContactService, ContactService>();
|
|
|
|
|
services.AddTransient<ISignatureService, SignatureService>();
|
2026-03-08 15:48:11 +01:00
|
|
|
services.AddTransient<IEmailTemplateService, EmailTemplateService>();
|
2025-02-16 14:38:53 +01:00
|
|
|
services.AddTransient<IContextMenuItemService, ContextMenuItemService>();
|
2026-04-08 23:46:55 +02:00
|
|
|
services.AddTransient<ICalendarContextMenuItemService, CalendarContextMenuItemService>();
|
2025-02-16 14:38:53 +01:00
|
|
|
services.AddTransient<ISpecialImapProviderConfigResolver, SpecialImapProviderConfigResolver>();
|
2026-04-23 14:52:52 +02:00
|
|
|
services.AddTransient<ILegacyLocalMigrationService, LegacyLocalMigrationService>();
|
2025-10-29 16:26:46 +01:00
|
|
|
services.AddTransient<IKeyboardShortcutService, KeyboardShortcutService>();
|
2026-03-16 01:33:27 +01:00
|
|
|
services.AddSingleton<IWinoAccountApiClient, WinoAccountApiClient>();
|
2026-03-19 10:26:17 +01:00
|
|
|
services.AddSingleton<IWinoAccountProfileService, WinoAccountProfileService>();
|
2026-04-04 20:23:20 +02:00
|
|
|
services.AddTransient<IWinoAccountDataSyncService, WinoAccountDataSyncService>();
|
2026-03-01 21:07:10 +01:00
|
|
|
services.AddSingleton<IContactPictureFileService, ContactPictureFileService>();
|
|
|
|
|
|
2026-02-15 02:20:18 +01:00
|
|
|
services.AddTransient<ICalDavClient, CalDavClient>();
|
2026-03-02 00:44:29 +01:00
|
|
|
services.AddSingleton<IUpdateManager, UpdateManager>();
|
2024-11-30 23:05:07 +01:00
|
|
|
}
|
|
|
|
|
}
|