namespace DigitalData.MessagingService.Infrastructure.Messaging; /// /// Configuration for RabbitMQ connection /// public class RabbitMqConfiguration { /// /// Configuration section name in appsettings.json /// public const string SectionName = "RabbitMQ"; /// /// RabbitMQ server hostname /// public string HostName { get; set; } = "localhost"; /// /// RabbitMQ AMQP port (default: 5672) /// public int Port { get; set; } = 5672; /// /// RabbitMQ username /// public string UserName { get; set; } = "guest"; /// /// RabbitMQ password /// public string Password { get; set; } = "guest"; /// /// Virtual host (default: /) /// public string VirtualHost { get; set; } = "/"; /// /// Enable automatic recovery on connection failure /// public bool AutomaticRecoveryEnabled { get; set; } = true; /// /// Network recovery interval in seconds /// public int NetworkRecoveryIntervalSeconds { get; set; } = 10; public string QueueName { get; set; } = null!; public string ExchangeName { get; set; } = null!; public string RoutingKey { get; set; } = null!; public string DlqQueueName { get; set; } = null!; public string DlqExchangeName { get; set; } = null!; public string DlqRoutingKey { get; set; } = null!; }