21 lines
496 B
C#
21 lines
496 B
C#
using PARR.EsppApi;
|
|
using PARR.Test;
|
|
using Serilog;
|
|
|
|
IHost host = Host.CreateDefaultBuilder(args)
|
|
.ConfigureServices((hostContext, services) =>
|
|
{
|
|
services.InstallEsppApiServices(hostContext.Configuration);
|
|
|
|
services.AddHostedService<Worker>();
|
|
})
|
|
.UseSerilog((hostContext, services, config) =>
|
|
{
|
|
config
|
|
.WriteTo.Console()
|
|
.ReadFrom.Configuration(hostContext.Configuration);
|
|
})
|
|
.Build();
|
|
|
|
host.Run();
|