12 lines
220 B
C#
12 lines
220 B
C#
using winService;
|
|
|
|
IHost host = Host.CreateDefaultBuilder(args)
|
|
.UseWindowsService()
|
|
.ConfigureServices(services =>
|
|
{
|
|
services.AddHostedService<Worker>();
|
|
})
|
|
.Build();
|
|
|
|
await host.RunAsync();
|