2026-04-14 12:01:49 +10:00
|
|
|
|
using PARR.Domain.Enums;
|
|
|
|
|
|
using PARR.Domain.Settings;
|
2023-09-20 16:51:29 +10:00
|
|
|
|
|
|
|
|
|
|
namespace PARR.API.Settings
|
2023-09-20 15:27:13 +10:00
|
|
|
|
{
|
|
|
|
|
|
public class MqSettings
|
|
|
|
|
|
{
|
2026-03-23 16:56:31 +10:00
|
|
|
|
public MqSettingsBase GenerateTemplates { get; set; } = new();
|
|
|
|
|
|
public MqSettingsBase TemplateDistributor { get; set; } = new();
|
|
|
|
|
|
public MqSettingsBase TemplateActivator { get; set; } = new();
|
2024-05-23 14:09:37 +10:00
|
|
|
|
public MqStatistics Statistics { get; set; } = new MqStatistics();
|
2026-03-23 16:56:31 +10:00
|
|
|
|
public MqSettingsBase TemplatesMatcher { get; set; } = new();
|
|
|
|
|
|
public MqSettingsBase TemplatesUpdater { get; set; } = new();
|
|
|
|
|
|
public MqSettingsBase NextRun { get; set; } = new();
|
2024-05-23 14:09:37 +10:00
|
|
|
|
|
2026-03-23 16:56:31 +10:00
|
|
|
|
/// <summary>
|
|
|
|
|
|
/// Настройки MQ для задач
|
|
|
|
|
|
/// </summary>
|
|
|
|
|
|
public Dictionary<TaskTypeEnum, MqSettingsBase> Tasks { get; set; } = new();
|
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
|
|
|
|
|
|
{
|
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;
|
2024-05-23 14:09:37 +10:00
|
|
|
|
}
|
2025-11-01 15:29:12 +10:00
|
|
|
|
|
2023-09-20 15:27:13 +10:00
|
|
|
|
}
|