Published to leosataec21.infineon.com
This commit is contained in:
12
Program.cs
Normal file
12
Program.cs
Normal file
@ -0,0 +1,12 @@
|
||||
using WinLog;
|
||||
|
||||
IHost host = Host.CreateDefaultBuilder(args)
|
||||
.ConfigureServices((hostContext, services) =>
|
||||
{
|
||||
_ = services.AddSingleton(WinLog.Models.Binder.AppSettings.Get(hostContext.Configuration));
|
||||
_ = services.AddHostedService<Worker>();
|
||||
})
|
||||
.UseWindowsService()
|
||||
.Build();
|
||||
|
||||
await host.RunAsync();
|
Reference in New Issue
Block a user