Skip to content

Commit

Permalink
change exchange type based on acceptable values for rabbitmq
Browse files Browse the repository at this point in the history
  • Loading branch information
Farzaneh Soltanzadeh committed Mar 12, 2024
1 parent 28e71e5 commit 28e5e06
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@ public enum BrokerType
/// <summary>
/// Direct exchange type routes messages based on exact matching of routing keys.
/// </summary>
Direct,
direct,

/// <summary>
/// Topic exchange type routes messages based on wildcard patterns in routing keys.
/// </summary>
Topic,
topic,

/// <summary>
/// Headers exchange type routes messages based on message headers.
/// </summary>
Headers,
headers,

/// <summary>
/// Fan-out exchange type routes messages to all bound queues without considering routing keys.
/// </summary>
FanOut
fanOut,
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ public class ExchangeOptions
/// <summary>
/// Gets or sets the type of RabbitMQ exchange, such as direct, topic, headers, or fanout.
/// </summary>
public BrokerType ExchangeType { get; set; } = BrokerType.Direct;
public BrokerType ExchangeType { get; set; } = BrokerType.direct;

/// <summary>
/// Gets or sets whether the exchange is durable, meaning it survives server restarts.
Expand Down

0 comments on commit 28e5e06

Please sign in to comment.