| | |
| | | using Microsoft.Extensions.Logging; |
| | | using Moli.Desktop.Configuration; |
| | | using Moli.Desktop.Diagnostics; |
| | | using Moli.Desktop.Interop; |
| | | using Moli.Desktop.Layout; |
| | | using Moli.Desktop.Plugins; |
| | | using Moli.Desktop.Runtime; |
| | | 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<IDesktopLayerStrategy, WorkerWDesktopLayerStrategy>(); |
| | | services.AddSingleton<IDesktopLayerStrategy, BottomDesktopLayerStrategy>(); |
| | | services.AddSingleton<IWin32InteropService, Win32InteropService>(); |
| | | services.AddSingleton<PluginBridgeDispatcher>(); |
| | | services.AddSingleton<IWebViewHostFactory, WebViewHostFactory>(); |
| | | services.AddSingleton<MainWindow>(); |
| | | }); |
| | | } |