| | |
| | | using Microsoft.Extensions.Logging; |
| | | using Moli.Desktop.Configuration; |
| | | using Moli.Desktop.Diagnostics; |
| | | using Moli.Desktop.Interop; |
| | | using Moli.Desktop.Layout; |
| | | using Moli.Desktop.Api; |
| | | using Moli.Desktop.Management; |
| | | using Moli.Desktop.Plugins; |
| | | using Moli.Desktop.Runtime; |
| | | using Moli.Desktop.Tray; |
| | | using Moli.Desktop.WebView; |
| | | using Moli.Desktop.Windows; |
| | | |
| | | namespace Moli.Desktop.Host; |
| | | |
| | |
| | | services.AddSingleton<DesktopPaths>(); |
| | | services.AddSingleton<IDiagnosticsService, DiagnosticsService>(); |
| | | services.AddSingleton<IRuntimeEventBus, RuntimeEventBus>(); |
| | | services.AddSingleton<IRuntimeSurfaceController, RuntimeSurfaceController>(); |
| | | services.AddSingleton<IDesktopRuntime, DesktopRuntimeCoordinator>(); |
| | | services.AddSingleton<IConfigurationService, JsonConfigurationService>(); |
| | | services.AddSingleton<IPluginManifestValidator, PluginManifestValidator>(); |
| | | services.AddSingleton<PluginStateMachine>(); |
| | | services.AddSingleton<IPluginManager, PluginManager>(); |
| | | services.AddSingleton<ILayoutManager, LayoutManager>(); |
| | | services.AddSingleton<MainWindow>(); |
| | | services.AddSingleton<IDesktopLayerStrategy, WorkerWDesktopLayerStrategy>(); |
| | | services.AddSingleton<IDesktopLayerStrategy, BottomDesktopLayerStrategy>(); |
| | | services.AddSingleton<IWin32InteropService, Win32InteropService>(); |
| | | services.AddSingleton<PluginBridgeDispatcher>(); |
| | | services.AddSingleton<IWebViewHostFactory, WebViewHostFactory>(); |
| | | services.AddSingleton<LocalApiService>(); |
| | | services.AddSingleton<ILocalApiStatus>(sp => sp.GetRequiredService<LocalApiService>()); |
| | | services.AddHostedService(sp => sp.GetRequiredService<LocalApiService>()); |
| | | services.AddSingleton<IStartupService, RegistryStartupService>(); |
| | | services.AddSingleton<ITrayShell, TrayShell>(); |
| | | services.AddTransient<ManagementWindow>(); |
| | | }); |
| | | } |
| | | } |