2023-09-20 16:51:29 +10:00
|
|
|
|
using PARR.BLL.Contracts.Interfaces;
|
|
|
|
|
|
|
|
|
|
|
|
namespace PARR.API.Settings
|
2023-09-20 15:27:13 +10:00
|
|
|
|
{
|
|
|
|
|
|
public class MqSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public MqGenerateTemplates GenerateTemplates { get; set; } = new MqGenerateTemplates();
|
2024-07-03 10:16:54 +10:00
|
|
|
|
public MqTemplateDistributor TemplateDistributor { get; set; } = new MqTemplateDistributor();
|
2024-07-25 12:26:54 +10:00
|
|
|
|
public MqTemplateActivator TemplateActivator { get; set; } = new MqTemplateActivator();
|
2024-05-23 14:09:37 +10:00
|
|
|
|
public MqStatistics Statistics { get; set; } = new MqStatistics();
|
2025-11-01 15:29:12 +10:00
|
|
|
|
public MqTemplatesMatcher TemplatesMatcher { get; set; } = new MqTemplatesMatcher();
|
2025-12-02 09:49:08 +10:00
|
|
|
|
public MqTemplatesUpdater TemplatesUpdater { get; set; } = new MqTemplatesUpdater();
|
2023-09-20 15:27:13 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class MqGenerateTemplates : IMqSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string HostName { get; set; } = string.Empty;
|
|
|
|
|
|
public string QueueName { get; set; } = string.Empty;
|
|
|
|
|
|
public string User { get; set; } = string.Empty;
|
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
2025-08-20 14:10:22 +10:00
|
|
|
|
public ushort? PrefetchCount { get; set; } = 0;
|
2023-09-20 15:27:13 +10:00
|
|
|
|
}
|
2024-05-23 14:09:37 +10:00
|
|
|
|
|
2024-07-03 10:16:54 +10:00
|
|
|
|
public class MqTemplateDistributor : IMqSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string HostName { get; set; } = string.Empty;
|
|
|
|
|
|
public string QueueName { get; set; } = string.Empty;
|
|
|
|
|
|
public string User { get; set; } = string.Empty;
|
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
2025-08-20 14:10:22 +10:00
|
|
|
|
public ushort? PrefetchCount { get; set; } = 0;
|
2024-07-03 10:16:54 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-07-25 12:26:54 +10:00
|
|
|
|
public class MqTemplateActivator : IMqSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string HostName { get; set; } = string.Empty;
|
|
|
|
|
|
public string QueueName { get; set; } = string.Empty;
|
|
|
|
|
|
public string User { get; set; } = string.Empty;
|
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
2025-08-20 14:10:22 +10:00
|
|
|
|
public ushort? PrefetchCount { get; set; } = 0;
|
2024-07-25 12:26:54 +10:00
|
|
|
|
}
|
|
|
|
|
|
|
2024-05-23 14:09:37 +10:00
|
|
|
|
public class MqStatistics
|
|
|
|
|
|
{
|
|
|
|
|
|
public StatMqAuth StatMqAuth { get; set; } = new StatMqAuth();
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
public class StatMqAuth : IMqSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string HostName { get; set; } = string.Empty;
|
|
|
|
|
|
public string QueueName { get; set; } = string.Empty;
|
|
|
|
|
|
public string User { get; set; } = string.Empty;
|
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
2025-08-20 14:10:22 +10:00
|
|
|
|
public ushort? PrefetchCount { get; set; } = 0;
|
2024-05-23 14:09:37 +10:00
|
|
|
|
}
|
2025-11-01 15:29:12 +10:00
|
|
|
|
|
|
|
|
|
|
public class MqTemplatesMatcher : IMqSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string HostName { get; set; } = string.Empty;
|
|
|
|
|
|
public string QueueName { get; set; } = string.Empty;
|
|
|
|
|
|
public string User { get; set; } = string.Empty;
|
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
|
|
|
|
|
public ushort? PrefetchCount { get; set; } = 0;
|
|
|
|
|
|
}
|
2025-12-02 09:49:08 +10:00
|
|
|
|
|
|
|
|
|
|
public class MqTemplatesUpdater : IMqSettings
|
|
|
|
|
|
{
|
|
|
|
|
|
public string HostName { get; set; } = string.Empty;
|
|
|
|
|
|
public string QueueName { get; set; } = string.Empty;
|
|
|
|
|
|
public string User { get; set; } = string.Empty;
|
|
|
|
|
|
public string Password { get; set; } = string.Empty;
|
|
|
|
|
|
public ushort? PrefetchCount { get; set; } = 0;
|
|
|
|
|
|
}
|
2023-09-20 15:27:13 +10:00
|
|
|
|
}
|