From e68fa989e16d457da57724bc8073c2f3db44392d Mon Sep 17 00:00:00 2001 From: TekH Date: Tue, 28 Jul 2026 15:54:38 +0200 Subject: [PATCH] Add defaults and docs to RabbitMqConfiguration properties Updated the `RabbitMqConfiguration` class to include: - XML documentation for all properties, improving clarity. - Default values for `QueueName`, `ExchangeName`, `RoutingKey`, `DlqQueueName`, `DlqExchangeName`, and `DlqRoutingKey` to define RabbitMQ naming conventions. Replaced undocumented properties with documented versions to enhance code readability and maintainability. --- .../RabbitMqConfiguration.cs | 36 +++++++++++++++---- 1 file changed, 30 insertions(+), 6 deletions(-) diff --git a/src/infrastructure/DigitalData.MessagingService.RabbitMQ/RabbitMqConfiguration.cs b/src/infrastructure/DigitalData.MessagingService.RabbitMQ/RabbitMqConfiguration.cs index d8d5776..4b46f5b 100644 --- a/src/infrastructure/DigitalData.MessagingService.RabbitMQ/RabbitMqConfiguration.cs +++ b/src/infrastructure/DigitalData.MessagingService.RabbitMQ/RabbitMqConfiguration.cs @@ -45,11 +45,35 @@ namespace DigitalData.MessagingService.RabbitMQ /// public int NetworkRecoveryIntervalSeconds { get; set; } = 10; - public string QueueName { get; set; } - public string ExchangeName { get; set; } - public string RoutingKey { get; set; } - public string DlqQueueName { get; set; } - public string DlqExchangeName { get; set; } - public string DlqRoutingKey { get; set; } + /// + /// Name of the main queue where outbound email messages are consumed from. + /// + public string QueueName { get; set; } = "messaging-service.email.outbox"; + + /// + /// Name of the exchange to which email messages are published. + /// Messages are routed from this exchange to via . + /// + public string ExchangeName { get; set; } = "messaging-service.emails"; + + /// + /// Routing key used to bind to . + /// + public string RoutingKey { get; set; } = "email.outbox"; + + /// + /// Name of the Dead Letter Queue (DLQ) where messages that could not be processed are routed. + /// + public string DlqQueueName { get; set; } = "messaging-service.email.outbox.dlq"; + + /// + /// Name of the Dead Letter Exchange (DLX) that routes rejected or expired messages to . + /// + public string DlqExchangeName { get; set; } = "messaging-service.emails.dlq"; + + /// + /// Routing key used to bind to . + /// + public string DlqRoutingKey { get; set; } = "email.outbox.dlq"; } } \ No newline at end of file