init
This commit is contained in:
		| @@ -0,0 +1,19 @@ | ||||
| using System.Configuration; | ||||
|  | ||||
| namespace Kreta.Client.Eugyintezes.Configuration | ||||
| { | ||||
|     public class EugyintezesClientConfiguration : ConfigurationSection, IEugyintezesClientConfiguration | ||||
|     { | ||||
|         [ConfigurationProperty(nameof(BaseUrl), IsRequired = true)] | ||||
|         public string BaseUrl => (string)base[nameof(BaseUrl)]; | ||||
|  | ||||
|         [ConfigurationProperty(nameof(ApiKey), IsRequired = true)] | ||||
|         public string ApiKey => (string)base[nameof(ApiKey)]; | ||||
|  | ||||
|         [ConfigurationProperty(nameof(IsUzenetekEnable), IsRequired = true)] | ||||
|         public bool IsUzenetekEnable => (bool)base[nameof(IsUzenetekEnable)]; | ||||
|  | ||||
|         [ConfigurationProperty(nameof(UzenetekFrequencyRate), IsRequired = true)] | ||||
|         public int UzenetekFrequencyRate => (int)base[nameof(UzenetekFrequencyRate)]; | ||||
|     } | ||||
| } | ||||
| @@ -0,0 +1,13 @@ | ||||
| namespace Kreta.Client.Eugyintezes.Configuration | ||||
| { | ||||
|     public interface IEugyintezesClientConfiguration | ||||
|     { | ||||
|         string BaseUrl { get; } | ||||
|  | ||||
|         string ApiKey { get; } | ||||
|  | ||||
|         bool IsUzenetekEnable { get; } | ||||
|  | ||||
|         int UzenetekFrequencyRate { get; } | ||||
|     } | ||||
| } | ||||
		Reference in New Issue
	
	Block a user