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

19 lines
506 B
C#

using Microsoft.Extensions.Configuration;
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;
}
public User[] Users => _configuration.GetSection("Users").Get<User[]>();
}
}