MaxPublishBatchSize must be set, but MaxQueueSize can be set to 0 to disable check of the rabbitmq queue size
16 lines
557 B
C#
16 lines
557 B
C#
namespace Producer.Models;
|
|
|
|
public class RabbitMqConfiguration
|
|
{
|
|
public const string SectionName = "RabbitMqConfiguration";
|
|
public const string Filename = "rabbitmq.json";
|
|
|
|
public string? Host { get; set; }
|
|
public string? Username { get; set; }
|
|
public string? Password { get; set; }
|
|
public string? QueueName { get; set; }
|
|
public bool Durable { get; set; }
|
|
public int MaxQueueSize { get; set; }
|
|
public int MaxPublishBatchSize { get; set; } = 500;
|
|
public int PublishIntervalInSeconds { get; set; } = 1000 * 10;
|
|
} |