2023-05-17 16:30:13 +10:00
|
|
|
|
namespace PARR.API.Installers
|
2023-05-17 16:00:50 +10:00
|
|
|
|
{
|
|
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Биндинги из конфига appsettings
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public static class SettingsInstaller
|
|
|
|
|
|
{
|
|
|
|
|
|
public static void InstallSettings(this IServiceCollection services, IConfiguration configuration)
|
|
|
|
|
|
{
|
|
|
|
|
|
//var storageSettings = new StorageSettings();
|
|
|
|
|
|
//configuration.GetSection(nameof(StorageSettings)).Bind(storageSettings);
|
|
|
|
|
|
//services.AddSingleton(storageSettings);
|
|
|
|
|
|
|
|
|
|
|
|
//TODO: add other
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|