2022-02-03 13:41:09 +00:00
|
|
|
namespace ASC.Webhooks.Service;
|
|
|
|
|
|
|
|
[Singletone]
|
|
|
|
public class Settings
|
2021-08-24 08:08:58 +00:00
|
|
|
{
|
2022-02-03 13:41:09 +00:00
|
|
|
public Settings()
|
2021-08-24 08:08:58 +00:00
|
|
|
{
|
2022-02-03 13:41:09 +00:00
|
|
|
}
|
2022-02-11 14:33:00 +00:00
|
|
|
|
2022-02-03 13:41:09 +00:00
|
|
|
public Settings(ConfigurationExtension configuration)
|
|
|
|
{
|
|
|
|
var cfg = configuration.GetSetting<Settings>("webhooks");
|
|
|
|
RepeatCount = cfg.RepeatCount ?? 5;
|
|
|
|
ThreadCount = cfg.ThreadCount ?? 1;
|
|
|
|
}
|
|
|
|
public int? RepeatCount { get; }
|
|
|
|
public int? ThreadCount { get; }
|
2022-02-11 14:33:00 +00:00
|
|
|
}
|