33 lines
1.0 KiB
C#
33 lines
1.0 KiB
C#
using PARR.BLL.Contracts.Interfaces;
|
|
|
|
namespace PARR.API.Settings
|
|
{
|
|
public class MqSettings
|
|
{
|
|
public MqGenerateTemplates GenerateTemplates { get; set; } = new MqGenerateTemplates();
|
|
public MqStatistics Statistics { get; set; } = new MqStatistics();
|
|
}
|
|
|
|
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;
|
|
}
|
|
|
|
public class MqStatistics
|
|
{
|
|
public List<string> QueueList { get; set; } = new List<string>();
|
|
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;
|
|
}
|
|
}
|