FIC_Solar/solarService2/Program.cs
2022-11-15 14:08:34 +08:00

15 lines
299 B
C#

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