using solarService; IHost host = Host.CreateDefaultBuilder(args) .UseWindowsService(options => { options.ServiceName = "solar_archive_service"; }) .ConfigureServices(services => { services.AddHostedService(); }) .Build(); await host.RunAsync();