18 lines
690 B
C#
18 lines
690 B
C#
namespace SPMS.Application.Settings;
|
|
|
|
public class RabbitMQSettings
|
|
{
|
|
public const string SectionName = "RabbitMQ";
|
|
|
|
public string HostName { get; set; } = string.Empty;
|
|
public int Port { get; set; } = 5672;
|
|
public string UserName { get; set; } = string.Empty;
|
|
public string Password { get; set; } = string.Empty;
|
|
public string VirtualHost { get; set; } = "/";
|
|
public string Exchange { get; set; } = "spms.push.exchange";
|
|
public string PushQueue { get; set; } = "spms.push.queue";
|
|
public string ScheduleQueue { get; set; } = "spms.schedule.queue";
|
|
public ushort PrefetchCount { get; set; } = 10;
|
|
public int MessageTtl { get; set; } = 86400000;
|
|
}
|