feat(esppOrderLoader): подключены все сервисы. Docker.
This commit is contained in:
@@ -1,5 +1,8 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.BLL;
|
||||
using PARR.DAL;
|
||||
using PARR.EsppApi;
|
||||
|
||||
namespace PARR.EsppOrderLoader
|
||||
{
|
||||
@@ -7,7 +10,9 @@ namespace PARR.EsppOrderLoader
|
||||
{
|
||||
public static void InstallEsppOrderLoaderServices(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
//TODO: добавить настройи bll и dal и espp api
|
||||
services.InstallBllServices(configuration);
|
||||
services.InstallDalServices(configuration);
|
||||
services.InstallEsppApiServices(configuration);
|
||||
|
||||
// settings
|
||||
//SettingsFromDb configuration
|
||||
@@ -18,5 +23,17 @@ namespace PARR.EsppOrderLoader
|
||||
//add other services
|
||||
//services.AddTransient<IEsppApiService, EsppApiService>();
|
||||
}
|
||||
|
||||
public static IConfigurationBuilder AddEsppOrderLoaderConfigurations(this IConfigurationBuilder builder, IServiceCollection services)
|
||||
{
|
||||
builder.AddDalConfigurations(services);
|
||||
|
||||
return builder;
|
||||
}
|
||||
|
||||
public static void AddEsppOrderLoaderSettings(this IServiceCollection services, IConfiguration configuration)
|
||||
{
|
||||
services.AddDallSettings(configuration);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user