feat(esppTemplateSync): переделал логику, подключил ISyncService
This commit is contained in:
@@ -2,7 +2,8 @@
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.BLL;
|
||||
using PARR.DAL;
|
||||
using PARR.EsppTemplateSync.Services;
|
||||
using PARR.EsppSync;
|
||||
using PARR.EsppTemplateSync.Domain;
|
||||
using PARR.EsppTemplateSync.Settings;
|
||||
|
||||
namespace PARR.EsppTemplateSync
|
||||
@@ -12,16 +13,14 @@ namespace PARR.EsppTemplateSync
|
||||
public static void InstallEsppTemplateSyncServices(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.InstallBllServices(configuration);
|
||||
services.InstallDalServices(configuration);
|
||||
//services.InstallDalServices(configuration);
|
||||
services.InstallEsppSyncServices<EsppObjectTemplate>(configuration);
|
||||
|
||||
var globalSettings = new GlobalSettings();
|
||||
configuration.GetSection(nameof(GlobalSettings)).Bind(globalSettings);
|
||||
services.AddSingleton(globalSettings);
|
||||
|
||||
services.AddAutoMapper(AppDomain.CurrentDomain.GetAssemblies());
|
||||
services.AddTransient<ITemplateSyncer, TemplateMQSyncer>();
|
||||
services.AddTransient<IParserService, ParserService>();
|
||||
services.AddTransient<IManager, Manager>();
|
||||
}
|
||||
|
||||
public static IConfigurationBuilder AddEsppTemplateConfigurations(this IConfigurationBuilder builder, IServiceCollection services)
|
||||
|
||||
Reference in New Issue
Block a user