Skip to content

Commit

Permalink
Add "headers" to ExchangeType
Browse files Browse the repository at this point in the history
  • Loading branch information
Emile Joubert committed Sep 7, 2011
1 parent e8cb517 commit 4b763ad
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions projects/client/RabbitMQ.Client/src/client/api/ExchangeType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,13 @@
namespace RabbitMQ.Client
{
///<summary>
/// Convenience class providing compile-time names for various exchange types.
/// Convenience class providing compile-time names for standard exchange types.
///</summary>
///<remarks>
/// 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.
///</remarks>
public class ExchangeType
{
Expand All @@ -58,17 +59,20 @@ public class ExchangeType
public const string Direct = "direct";
///<summary>Exchange type used for AMQP topic exchanges.</summary>
public const string Topic = "topic";
///<summary>Exchange type used for AMQP headers exchanges.</summary>
public const string Headers = "headers";

///<summary>Private constructor - this class has no instances</summary>
private ExchangeType() {}

///<summary>Retrieve a collection containing all defined exchange types.</summary>
///<summary>Retrieve a collection containing all standard exchange types.</summary>
public static ICollection All()
{
return new string[] {
Fanout,
Direct,
Topic
Topic,
Headers
};
}
}
Expand Down

0 comments on commit 4b763ad

Please sign in to comment.