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>();
|
|
|
|
|
services.AddSingleton<IMimeFileService, MimeFileService>();
|
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>();
|
|
|
|
|
services.AddTransient<IFolderService, FolderService>();
|
|
|
|
|
services.AddTransient<IAccountService, AccountService>();
|
|
|
|
|
services.AddTransient<IContactService, ContactService>();
|
|
|
|
|
services.AddTransient<ISignatureService, SignatureService>();
|
|
|
|
|
services.AddTransient<IContextMenuItemService, ContextMenuItemService>();
|
|
|
|
|
services.AddTransient<ISpecialImapProviderConfigResolver, SpecialImapProviderConfigResolver>();
|
2025-10-29 16:26:46 +01:00
|
|
|
services.AddTransient<IKeyboardShortcutService, KeyboardShortcutService>();
|
2024-11-30 23:05:07 +01:00
|
|
|
}
|
|
|
|
|
}
|