Skip to content

Commit 4b763ad

Browse files
author
Emile Joubert
committed
Add "headers" to ExchangeType
1 parent e8cb517 commit 4b763ad

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

projects/client/RabbitMQ.Client/src/client/api/ExchangeType.cs

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@
4343
namespace RabbitMQ.Client
4444
{
4545
///<summary>
46-
/// Convenience class providing compile-time names for various exchange types.
46+
/// Convenience class providing compile-time names for standard exchange types.
4747
///</summary>
4848
///<remarks>
4949
/// Use the static members of this class as values for the
5050
/// "exchangeType" arguments for IModel methods such as
51-
/// ExchangeDeclare.
51+
/// ExchangeDeclare. The broker may be extended with additional
52+
/// exchange types that do not appear in this class.
5253
///</remarks>
5354
public class ExchangeType
5455
{
@@ -58,17 +59,20 @@ public class ExchangeType
5859
public const string Direct = "direct";
5960
///<summary>Exchange type used for AMQP topic exchanges.</summary>
6061
public const string Topic = "topic";
62+
///<summary>Exchange type used for AMQP headers exchanges.</summary>
63+
public const string Headers = "headers";
6164

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

65-
///<summary>Retrieve a collection containing all defined exchange types.</summary>
68+
///<summary>Retrieve a collection containing all standard exchange types.</summary>
6669
public static ICollection All()
6770
{
6871
return new string[] {
6972
Fanout,
7073
Direct,
71-
Topic
74+
Topic,
75+
Headers
7276
};
7377
}
7478
}

0 commit comments

Comments
 (0)