network-resurrector/NetworkResurrector.Application/Services/ParamProvider.cs

19 lines
506 B
C#
Raw Normal View History

using Microsoft.Extensions.Configuration;
2020-07-10 00:29:39 +03:00
using NetworkResurrector.Domain.Entities;
using NetworkResurrector.Domain.Services;
namespace NetworkResurrector.Application.Services
{
public class ParamProvider : IParamProvider
{
private readonly IConfiguration _configuration;
public ParamProvider(IConfiguration configuration)
{
_configuration = configuration;
}
2020-07-10 00:29:39 +03:00
public User[] Users => _configuration.GetSection("Users").Get<User[]>();
}
}