init
This commit is contained in:
@@ -0,0 +1,8 @@
|
||||
namespace Kreta.Client.SzirApi.Configuration
|
||||
{
|
||||
public interface ISzirApiClientConfiguration
|
||||
{
|
||||
string ApiUrl { get; }
|
||||
string ApiKey { get; }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
using System.Configuration;
|
||||
|
||||
namespace Kreta.Client.SzirApi.Configuration
|
||||
{
|
||||
public class SzirApiClientConfiguration : ConfigurationSection, ISzirApiClientConfiguration
|
||||
{
|
||||
[ConfigurationProperty(nameof(ApiUrl), IsRequired = true)]
|
||||
public string ApiUrl => (string)base[nameof(ApiUrl)];
|
||||
|
||||
[ConfigurationProperty(nameof(ApiKey), IsRequired = true)]
|
||||
public string ApiKey => (string)base[nameof(ApiKey)];
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user