37 lines
1.3 KiB
C#
37 lines
1.3 KiB
C#
using PARR.BLL.Contracts.Interfaces;
|
|
using PARR.DAL.Contracts;
|
|
|
|
namespace PARR.API.Settings
|
|
{
|
|
public class MqSettings
|
|
{
|
|
public MqSettingsBase GenerateTemplates { get; set; } = new();
|
|
public MqSettingsBase TemplateDistributor { get; set; } = new();
|
|
public MqSettingsBase TemplateActivator { get; set; } = new();
|
|
public MqStatistics Statistics { get; set; } = new MqStatistics();
|
|
public MqSettingsBase TemplatesMatcher { get; set; } = new();
|
|
public MqSettingsBase TemplatesUpdater { get; set; } = new();
|
|
public MqSettingsBase NextRun { get; set; } = new();
|
|
|
|
/// <summary>
|
|
/// Настройки MQ для задач
|
|
/// </summary>
|
|
public Dictionary<TaskTypeEnum, MqSettingsBase> Tasks { get; set; } = new();
|
|
}
|
|
|
|
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;
|
|
public ushort? PrefetchCount { get; set; } = 0;
|
|
}
|
|
|
|
}
|