FIC_Solar/winService/Program.cs
2022-10-14 12:54:46 +08:00

12 lines
220 B
C#

using winService;
IHost host = Host.CreateDefaultBuilder(args)
.UseWindowsService()
.ConfigureServices(services =>
{
services.AddHostedService<Worker>();
})
.Build();
await host.RunAsync();