2024-04-18 01:44:37 +02:00
|
|
|
|
using Microsoft.Extensions.DependencyInjection;
|
2024-07-16 23:28:57 +02:00
|
|
|
|
using Windows.ApplicationModel.AppService;
|
2024-07-21 05:45:02 +02:00
|
|
|
|
using Wino.Domain.Interfaces;
|
|
|
|
|
|
using Wino.Shared.WinRT.Services;
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
2024-07-21 05:45:02 +02:00
|
|
|
|
namespace Wino.Shared.WinRT
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
2024-07-21 05:45:02 +02:00
|
|
|
|
public static class SharedWinRTContainerSetup
|
2024-04-18 01:44:37 +02:00
|
|
|
|
{
|
|
|
|
|
|
public static void RegisterCoreUWPServices(this IServiceCollection services)
|
|
|
|
|
|
{
|
2024-07-16 23:28:57 +02:00
|
|
|
|
var serverConnectionManager = new WinoServerConnectionManager();
|
|
|
|
|
|
|
|
|
|
|
|
services.AddSingleton<IWinoServerConnectionManager>(serverConnectionManager);
|
|
|
|
|
|
services.AddSingleton<IWinoServerConnectionManager<AppServiceConnection>>(serverConnectionManager);
|
|
|
|
|
|
|
2024-04-18 01:44:37 +02:00
|
|
|
|
services.AddSingleton<IUnderlyingThemeService, UnderlyingThemeService>();
|
|
|
|
|
|
services.AddSingleton<INativeAppService, NativeAppService>();
|
|
|
|
|
|
services.AddSingleton<IStoreManagementService, StoreManagementService>();
|
2024-07-13 03:45:55 +02:00
|
|
|
|
services.AddSingleton<IAppShellService, AppShellService>();
|
2024-07-20 04:16:45 +02:00
|
|
|
|
services.AddSingleton<IPreferencesService, PreferencesService>();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
services.AddTransient<IConfigurationService, ConfigurationService>();
|
|
|
|
|
|
services.AddTransient<IFileService, FileService>();
|
|
|
|
|
|
services.AddTransient<IStoreRatingService, StoreRatingService>();
|
|
|
|
|
|
services.AddTransient<IKeyPressService, KeyPressService>();
|
|
|
|
|
|
services.AddTransient<INotificationBuilder, NotificationBuilder>();
|
|
|
|
|
|
services.AddTransient<IClipboardService, ClipboardService>();
|
2024-07-21 05:45:02 +02:00
|
|
|
|
services.AddSingleton<IThemeService, ThemeService>();
|
|
|
|
|
|
services.AddSingleton<IStatePersistanceService, StatePersistenceService>();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|