using Microsoft.Extensions.Hosting;
IHostBuilder hostBuilder = Host.CreateDefaultBuilder()
.ConfigureServices
(
(context, serviceCollection) =>
{
serviceCollection.AddTransient<ActivationHandler<LaunchActivatedEventArgs>, DefaultActivationHandler>();
serviceCollection.AddTransient<IActivationHandler, AppNotificationActivationHandler>();
serviceCollection.AddSingleton<IAppNotificationService, AppNotificationService>();
serviceCollection.AddSingleton<ILocalSettingService , LocalSettingService>();
serviceCollection.AddSingleton<IThemeSelectorService , ThemeSelectorService>();
serviceCollection.AddTransient<IWebViewService , WebViewService>();
serviceCollection.AddTransient<INavigationViewService , NavigationViewService>();
serviceCollection.AddSingleton<IActivationService, ActivationService>();
serviceCollection.AddSingleton<IPageService , PageService>();
serviceCollection.AddSingleton<INavigationService, NavigationService>();
serviceCollection.AddSingleton<IFileService, FileService>();
serviceCollection.AddTransient<SettingViewModel>();
serviceCollection.AddTransient<SettingPage>();
serviceCollection.AddTransient<WebViewModel>();
serviceCollection.AddTransient<WebPage>();
serviceCollection.AddTransient<TestViewModel>();
serviceCollection.AddTransient<TestPage>();
serviceCollection.AddTransient<MainViewModel>();
serviceCollection.AddTransient<MainPage>();
serviceCollection.AddTransient<ShellPage>();
serviceCollection.AddTransient<ShellViewModel>();
serviceCollection.Configure<LocalSettingOption>(context.Configuration.GetSection(nameof(LocalSettingOption)));
}
);