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.
This commit is contained in:
2026-07-28 15:54:38 +02:00
parent de44b1967f
commit e68fa989e1

View File

@@ -45,11 +45,35 @@ namespace DigitalData.MessagingService.RabbitMQ
/// </summary> /// </summary>
public int NetworkRecoveryIntervalSeconds { get; set; } = 10; public int NetworkRecoveryIntervalSeconds { get; set; } = 10;
public string QueueName { get; set; } /// <summary>
public string ExchangeName { get; set; } /// Name of the main queue where outbound email messages are consumed from.
public string RoutingKey { get; set; } /// </summary>
public string DlqQueueName { get; set; } public string QueueName { get; set; } = "messaging-service.email.outbox";
public string DlqExchangeName { get; set; }
public string DlqRoutingKey { get; set; } /// <summary>
/// Name of the exchange to which email messages are published.
/// Messages are routed from this exchange to <see cref="QueueName"/> via <see cref="RoutingKey"/>.
/// </summary>
public string ExchangeName { get; set; } = "messaging-service.emails";
/// <summary>
/// Routing key used to bind <see cref="QueueName"/> to <see cref="ExchangeName"/>.
/// </summary>
public string RoutingKey { get; set; } = "email.outbox";
/// <summary>
/// Name of the Dead Letter Queue (DLQ) where messages that could not be processed are routed.
/// </summary>
public string DlqQueueName { get; set; } = "messaging-service.email.outbox.dlq";
/// <summary>
/// Name of the Dead Letter Exchange (DLX) that routes rejected or expired messages to <see cref="DlqQueueName"/>.
/// </summary>
public string DlqExchangeName { get; set; } = "messaging-service.emails.dlq";
/// <summary>
/// Routing key used to bind <see cref="DlqQueueName"/> to <see cref="DlqExchangeName"/>.
/// </summary>
public string DlqRoutingKey { get; set; } = "email.outbox.dlq";
} }
} }