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:
@@ -45,11 +45,35 @@ namespace DigitalData.MessagingService.RabbitMQ
|
||||
/// </summary>
|
||||
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; }
|
||||
/// <summary>
|
||||
/// Name of the main queue where outbound email messages are consumed from.
|
||||
/// </summary>
|
||||
public string QueueName { get; set; } = "messaging-service.email.outbox";
|
||||
|
||||
/// <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";
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user