RAIDAlert/Program.cs

11 lines
209 B
C#

using RAIDAlert;
IHost host = Host.CreateDefaultBuilder(args)
.UseWindowsService()
.ConfigureServices(services =>
{
services.AddHostedService<Watchdog>();
})
.Build();
host.Run();