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-04-18 01:44:37 +02:00
|
|
|
|
using Wino.Core.Domain.Interfaces;
|
|
|
|
|
|
using Wino.Core.UWP.Services;
|
2024-07-13 03:45:55 +02:00
|
|
|
|
using Wino.Core.WinUI.Services;
|
2024-04-18 01:44:37 +02:00
|
|
|
|
using Wino.Services;
|
|
|
|
|
|
|
|
|
|
|
|
namespace Wino.Core.UWP
|
|
|
|
|
|
{
|
|
|
|
|
|
public static class CoreUWPContainerSetup
|
|
|
|
|
|
{
|
|
|
|
|
|
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>();
|
|
|
|
|
|
services.AddSingleton<IBackgroundTaskService, BackgroundTaskService>();
|
2024-07-13 03:45:55 +02:00
|
|
|
|
services.AddSingleton<IAppShellService, AppShellService>();
|
2024-04-18 01:44:37 +02:00
|
|
|
|
|
2024-07-18 20:03:58 +02:00
|
|
|
|
|
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>();
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|