This commit is contained in:
skidoodle 2024-03-13 00:33:46 +01:00
commit e124a47765
19374 changed files with 9806149 additions and 0 deletions

View file

@ -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)];
}
}

View file

@ -0,0 +1,13 @@
namespace Kreta.Client.Eugyintezes.Configuration
{
public interface IEugyintezesClientConfiguration
{
string BaseUrl { get; }
string ApiKey { get; }
bool IsUzenetekEnable { get; }
int UzenetekFrequencyRate { get; }
}
}