| | |
| | | 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; |
| | | |
| | |
| | | services.AddSingleton<IWin32InteropService, Win32InteropService>(); |
| | | services.AddSingleton<PluginBridgeDispatcher>(); |
| | | services.AddSingleton<IWebViewHostFactory, WebViewHostFactory>(); |
| | | services.AddSingleton<MainWindow>(); |
| | | 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>(); |
| | | }); |
| | | } |
| | | } |