2023-11-30 09:11:07 +10:00
|
|
|
using PARR.BLL;
|
2023-10-19 15:59:57 +10:00
|
|
|
using PARR.EsppApi;
|
2024-07-01 11:32:19 +10:00
|
|
|
using PARR.DAL;
|
2023-10-19 15:59:57 +10:00
|
|
|
using PARR.Test;
|
2023-10-24 12:10:19 +10:00
|
|
|
using Serilog;
|
2024-07-25 14:05:00 +10:00
|
|
|
using PARR.TemplateDistributor;
|
2023-10-19 15:59:57 +10:00
|
|
|
|
|
|
|
|
IHost host = Host.CreateDefaultBuilder(args)
|
|
|
|
|
.ConfigureServices((hostContext, services) =>
|
|
|
|
|
{
|
|
|
|
|
services.InstallEsppApiServices(hostContext.Configuration);
|
2023-11-30 09:11:07 +10:00
|
|
|
services.InstallBllServices(hostContext.Configuration);
|
2024-07-01 11:32:19 +10:00
|
|
|
services.InstallDalServices(hostContext.Configuration);
|
2024-07-25 14:05:00 +10:00
|
|
|
services.InstallTemplateDistributorSerivces(hostContext.Configuration);
|
2023-10-19 15:59:57 +10:00
|
|
|
|
|
|
|
|
services.AddHostedService<Worker>();
|
|
|
|
|
})
|
2023-10-24 12:10:19 +10:00
|
|
|
.UseSerilog((hostContext, services, config) =>
|
|
|
|
|
{
|
|
|
|
|
config
|
|
|
|
|
.WriteTo.Console()
|
|
|
|
|
.ReadFrom.Configuration(hostContext.Configuration);
|
|
|
|
|
})
|
2023-10-19 15:59:57 +10:00
|
|
|
.Build();
|
|
|
|
|
|
|
|
|
|
host.Run();
|