file service вынесен в bll. EsppDataController UploadTemplates
This commit is contained in:
21
PARR.BLL/ParrBllInstaller.cs
Normal file
21
PARR.BLL/ParrBllInstaller.cs
Normal file
@@ -0,0 +1,21 @@
|
||||
using Microsoft.Extensions.Configuration;
|
||||
using Microsoft.Extensions.DependencyInjection;
|
||||
using PARR.BLL.Services.Implementations;
|
||||
using PARR.BLL.Services.Interfaces;
|
||||
using PARR.BLL.Settings;
|
||||
|
||||
namespace PARR.BLL
|
||||
{
|
||||
public static class ParrBllInstaller
|
||||
{
|
||||
public static void InstallBllServices(this IServiceCollection services, IConfiguration configuration) {
|
||||
|
||||
var storageSettings = new StorageSettings();
|
||||
configuration.GetSection(nameof(StorageSettings)).Bind(storageSettings);
|
||||
services.AddSingleton(storageSettings);
|
||||
|
||||
|
||||
services.AddTransient<IFileService, FileService>();
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user