Skip to content

Commit 5fdf6cf

Browse files
Compile
1 parent e23698e commit 5fdf6cf

File tree

2 files changed

+15
-0
lines changed

2 files changed

+15
-0
lines changed

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

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,13 @@ void QueueBind(string queue,
272272
string exchange,
273273
string routingKey);
274274

275+
///<summary>Same as QueueBind but sets nowait parameter to true and returns void (as there
276+
///will be no response from the server).</summary>
277+
void QueueBindNowait(string queue,
278+
string exchange,
279+
string routingKey,
280+
IDictionary<string, object> arguments);
281+
275282
///<summary>(Spec method) Unbind a queue from an exchange.</summary>
276283
///<remarks>
277284
///Note: This operation is only supported when communicating

projects/client/RabbitMQ.Client/src/client/impl/ModelBase.cs

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -935,6 +935,14 @@ public void QueueBind(string queue,
935935
QueueBind(queue, exchange, routingKey, null);
936936
}
937937

938+
public void QueueBindNowait(string queue,
939+
string exchange,
940+
string routingKey,
941+
IDictionary<string, object> arguments)
942+
{
943+
_Private_QueueBind(queue, exchange, routingKey, true, arguments);
944+
}
945+
938946
public abstract void _Private_QueueBind(string queue,
939947
string exchange,
940948
string routingKey,

0 commit comments

Comments
 (0)