From 4b763ad9f7a492caf498a267f7bba8b16c4e733a Mon Sep 17 00:00:00 2001 From: Emile Joubert Date: Wed, 7 Sep 2011 10:53:40 +0100 Subject: [PATCH] Add "headers" to ExchangeType --- .../RabbitMQ.Client/src/client/api/ExchangeType.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/projects/client/RabbitMQ.Client/src/client/api/ExchangeType.cs b/projects/client/RabbitMQ.Client/src/client/api/ExchangeType.cs index 3b8f4c20b3..1cff26a0bb 100644 --- a/projects/client/RabbitMQ.Client/src/client/api/ExchangeType.cs +++ b/projects/client/RabbitMQ.Client/src/client/api/ExchangeType.cs @@ -43,12 +43,13 @@ namespace RabbitMQ.Client { /// - /// Convenience class providing compile-time names for various exchange types. + /// Convenience class providing compile-time names for standard exchange types. /// /// /// Use the static members of this class as values for the /// "exchangeType" arguments for IModel methods such as - /// ExchangeDeclare. + /// ExchangeDeclare. The broker may be extended with additional + /// exchange types that do not appear in this class. /// public class ExchangeType { @@ -58,17 +59,20 @@ public class ExchangeType public const string Direct = "direct"; ///Exchange type used for AMQP topic exchanges. public const string Topic = "topic"; + ///Exchange type used for AMQP headers exchanges. + public const string Headers = "headers"; ///Private constructor - this class has no instances private ExchangeType() {} - ///Retrieve a collection containing all defined exchange types. + ///Retrieve a collection containing all standard exchange types. public static ICollection All() { return new string[] { Fanout, Direct, - Topic + Topic, + Headers }; } }