Class ExchangeType
Convenience class providing compile-time names for standard exchange types.
Inherited Members
Namespace: RabbitMQ.Client
Assembly: RabbitMQ.Client.dll
Syntax
public static class ExchangeType
Remarks
Use the static members of this class as values for the "exchangeType" arguments for IModel methods such as ExchangeDeclare. The broker may be extended with additional exchange types that do not appear in this class.
Fields
| Edit this page View SourceDirect
Exchange type used for AMQP direct exchanges.
Declaration
public const string Direct = "direct"
Field Value
Type | Description |
---|---|
string |
Fanout
Exchange type used for AMQP fanout exchanges.
Declaration
public const string Fanout = "fanout"
Field Value
Type | Description |
---|---|
string |
Headers
Exchange type used for AMQP headers exchanges.
Declaration
public const string Headers = "headers"
Field Value
Type | Description |
---|---|
string |
Topic
Exchange type used for AMQP topic exchanges.
Declaration
public const string Topic = "topic"
Field Value
Type | Description |
---|---|
string |
Methods
| Edit this page View SourceAll()
Retrieve a collection containing all standard exchange types.
Declaration
public static ICollection<string> All()
Returns
Type | Description |
---|---|
ICollection<string> |