Skip to content

Commit f9dee48

Browse files
author
Rob Harrop
committed
Added BasicNack to IModel
1 parent 66c5372 commit f9dee48

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -420,6 +420,14 @@ void BasicAck(ulong deliveryTag,
420420
///<summary>(Spec method) Reject a delivered message.</summary>
421421
void BasicReject(ulong deliveryTag,
422422
bool requeue);
423+
424+
///<summary>Reject one or more delivered message(s).</summary>
425+
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_8qpid")]
426+
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_8")]
427+
[AmqpUnsupported("RabbitMQ.Client.Framing.v0_9")]
428+
void BasicNack(ulong deliveryTag,
429+
bool multiple,
430+
bool requeue);
423431

424432
///<summary>(Spec method)</summary>
425433
[AmqpMethodDoNotImplement(null)]

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1037,6 +1037,10 @@ public abstract void BasicAck(ulong deliveryTag,
10371037
public abstract void BasicReject(ulong deliveryTag,
10381038
bool requeue);
10391039

1040+
public abstract void BasicNack(ulong deliveryTag,
1041+
bool multiple,
1042+
bool requeue);
1043+
10401044
public abstract void BasicRecoverAsync(bool requeue);
10411045

10421046
public abstract void TxSelect();

0 commit comments

Comments
 (0)