проекты
This commit is contained in:
17
PARR.GeneratorTemplatesWorker/Program.cs
Normal file
17
PARR.GeneratorTemplatesWorker/Program.cs
Normal file
@@ -0,0 +1,17 @@
|
||||
using PARR.GeneratorTemplatesWorker;
|
||||
using Serilog;
|
||||
|
||||
IHost host = Host.CreateDefaultBuilder(args)
|
||||
.ConfigureServices(services =>
|
||||
{
|
||||
services.AddHostedService<Worker>();
|
||||
})
|
||||
.UseSerilog((hostContext, services, config) =>
|
||||
{
|
||||
config
|
||||
.WriteTo.Console()
|
||||
.ReadFrom.Configuration(hostContext.Configuration);
|
||||
})
|
||||
.Build();
|
||||
|
||||
host.Run();
|
||||
Reference in New Issue
Block a user