27 lines
1011 B
C#
27 lines
1011 B
C#
using System.Configuration;
|
|
using Kreta.Core.Configuratiaton.Interface;
|
|
|
|
namespace Kreta.Core.Configuratiaton
|
|
{
|
|
public class LepConfiguration : ConfigurationSection, ILepConfiguration
|
|
{
|
|
[ConfigurationProperty(nameof(Url), IsRequired = true)]
|
|
public string Url => (string)this[nameof(Url)];
|
|
|
|
[ConfigurationProperty(nameof(UserName), IsRequired = true)]
|
|
public string UserName => (string)this[nameof(UserName)];
|
|
|
|
[ConfigurationProperty(nameof(Password), IsRequired = true)]
|
|
public string Password => (string)this[nameof(Password)];
|
|
|
|
[ConfigurationProperty(nameof(ClientId), IsRequired = true)]
|
|
public string ClientId => (string)this[nameof(ClientId)];
|
|
|
|
[ConfigurationProperty(nameof(ClientSecret), IsRequired = true)]
|
|
public string ClientSecret => (string)this[nameof(ClientSecret)];
|
|
|
|
[ConfigurationProperty(nameof(ApiKey), IsRequired = true)]
|
|
public string ApiKey => (string)this[nameof(ApiKey)];
|
|
}
|
|
}
|