2026-04-14 12:01:49 +10:00
|
|
|
|
using PARR.Domain.Settings;
|
2023-09-22 09:08:13 +10:00
|
|
|
|
|
|
|
|
|
|
namespace PARR.EsppTemplateSync.Settings
|
2023-08-28 16:03:39 +10:00
|
|
|
|
{
|
|
|
|
|
|
internal class GlobalSettings
|
2023-08-31 12:04:05 +10:00
|
|
|
|
{
|
2023-09-01 11:47:39 +10:00
|
|
|
|
public MqSettings? MqSettings { get; set; }
|
2023-08-31 12:04:05 +10:00
|
|
|
|
|
|
|
|
|
|
public StorageSettings? StorageSettings { get; set; }
|
2023-11-22 16:34:16 +10:00
|
|
|
|
//public List<string>? IgnoreTemplateFields { get; set; }
|
2023-09-20 17:07:17 +10:00
|
|
|
|
public string ParsingSeparator { get; set; } = "<|>";
|
2023-08-31 12:04:05 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2023-09-22 09:08:13 +10:00
|
|
|
|
internal class MqSettings : IMqSettings
|
2023-08-31 12:04:05 +10:00
|
|
|
|
{
|
2026-04-14 12:01:49 +10:00
|
|
|
|
public string HostName { get; init; } = string.Empty;
|
|
|
|
|
|
public string QueueName { get; init; } = string.Empty;
|
|
|
|
|
|
public string User { get; init; } = string.Empty;
|
|
|
|
|
|
public string Password { get; init; } = string.Empty;
|
|
|
|
|
|
public ushort? PrefetchCount { get; init; } = 0;
|
2023-08-31 12:04:05 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
internal class StorageSettings
|
2023-08-28 16:03:39 +10:00
|
|
|
|
{
|
|
|
|
|
|
public int CheckIntervalSeconds { get; set; } = 5;
|
|
|
|
|
|
}
|
|
|
|
|
|
}
|