Mq Consumer
This commit is contained in:
@@ -1,9 +1,26 @@
|
||||
using PARR.GeneratorTemplates;
|
||||
using PARR.GeneratorTemplatesWorker;
|
||||
using Serilog;
|
||||
|
||||
|
||||
IHost host = Host.CreateDefaultBuilder(args)
|
||||
.ConfigureServices(services =>
|
||||
.ConfigureServices((hostContext, services) =>
|
||||
{
|
||||
services.InstallGeneratorTemplateServices(hostContext.Configuration);
|
||||
//hostContext.Configuration.AddGeneratorTemplateConfigurations(services);
|
||||
//services.AddGeneratorTemplateSettings(hostContext.Configuration);
|
||||
|
||||
//services.AddHostedService<Worker>();
|
||||
})
|
||||
//.ConfigureAppConfiguration((hostContext, configBuilder) =>
|
||||
//{
|
||||
//TODO: !!! !!! !!! не смог прикрутить AddGeneratorTemplateConfigurations, не могу прокинуть туда сервисы
|
||||
// configBuilder.AddGeneratorTemplateConfigurations(hostContext.Services);
|
||||
//})
|
||||
.ConfigureServices((hostContext, services) =>
|
||||
{
|
||||
//services.AddGeneratorTemplateSettings(hostContext.Configuration);
|
||||
|
||||
services.AddHostedService<Worker>();
|
||||
})
|
||||
.UseSerilog((hostContext, services, config) =>
|
||||
|
||||
Reference in New Issue
Block a user