init
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
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)];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user