Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 33 additions & 1 deletion projects/RabbitMQ.Client/ExchangeType.cs
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,39 @@ public static class ExchangeType
/// </summary>
public const string Topic = "topic";

private static readonly string[] s_all = { Fanout, Direct, Topic, Headers };
/// <summary>
/// Exchange type used for consistent hash exchanges.
/// </summary>
/// <remarks>
/// Requires the <c>rabbitmq_consistent_hash_exchange</c> plugin to be enabled.
/// </remarks>
public const string ConsistentHash = "x-consistent-hash";

/// <summary>
/// Exchange type used for local random exchanges.
/// </summary>
/// <remarks>
/// Available in RabbitMQ 4.2.0 and later.
/// </remarks>
public const string LocalRandom = "x-local-random";

/// <summary>
/// Exchange type used for modulus hash exchanges.
/// </summary>
/// <remarks>
/// Available in RabbitMQ 4.3.0 and later.
/// </remarks>
public const string ModulusHash = "x-modulus-hash";

/// <summary>
/// Exchange type used for random exchanges.
/// </summary>
/// <remarks>
/// Requires the <c>rabbitmq_random_exchange</c> plugin to be enabled.
/// </remarks>
public const string Random = "x-random";

private static readonly string[] s_all = { Fanout, Direct, Topic, Headers, ConsistentHash, LocalRandom, ModulusHash, Random };

/// <summary>
/// Retrieve a collection containing all standard exchange types.
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const RabbitMQ.Client.ExchangeType.ConsistentHash = "x-consistent-hash" -> string
const RabbitMQ.Client.ExchangeType.LocalRandom = "x-local-random" -> string
const RabbitMQ.Client.ExchangeType.ModulusHash = "x-modulus-hash" -> string
const RabbitMQ.Client.ExchangeType.Random = "x-random" -> string
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
const RabbitMQ.Client.ExchangeType.ConsistentHash = "x-consistent-hash" -> string
const RabbitMQ.Client.ExchangeType.LocalRandom = "x-local-random" -> string
const RabbitMQ.Client.ExchangeType.ModulusHash = "x-modulus-hash" -> string
const RabbitMQ.Client.ExchangeType.Random = "x-random" -> string
Loading