From 28e5e067fb68dc5dfc4126ef8d4057ddfc33bd33 Mon Sep 17 00:00:00 2001 From: Farzaneh Soltanzadeh Date: Tue, 12 Mar 2024 14:29:50 -0700 Subject: [PATCH] change exchange type based on acceptable values for rabbitmq --- .../RabbitMqEventAggregator/BrokerType.cs | 10 +++++----- .../RabbitMqEventAggregator/ExchangeOptions.cs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/BrokerType.cs b/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/BrokerType.cs index 4c9bbe3..3e13944 100644 --- a/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/BrokerType.cs +++ b/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/BrokerType.cs @@ -8,21 +8,21 @@ public enum BrokerType /// /// Direct exchange type routes messages based on exact matching of routing keys. /// - Direct, - + direct, + /// /// Topic exchange type routes messages based on wildcard patterns in routing keys. /// - Topic, + topic, /// /// Headers exchange type routes messages based on message headers. /// - Headers, + headers, /// /// Fan-out exchange type routes messages to all bound queues without considering routing keys. /// - FanOut + fanOut, } } \ No newline at end of file diff --git a/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/ExchangeOptions.cs b/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/ExchangeOptions.cs index 7e9b95f..4196578 100644 --- a/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/ExchangeOptions.cs +++ b/Source/BSN.Commons/Infrastructure/MessageBroker/RabbitMqEventAggregator/ExchangeOptions.cs @@ -15,7 +15,7 @@ public class ExchangeOptions /// /// Gets or sets the type of RabbitMQ exchange, such as direct, topic, headers, or fanout. /// - public BrokerType ExchangeType { get; set; } = BrokerType.Direct; + public BrokerType ExchangeType { get; set; } = BrokerType.direct; /// /// Gets or sets whether the exchange is durable, meaning it survives server restarts.