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