Skip to content

Commit cbbf99f

Browse files
One more arity
1 parent 7615a58 commit cbbf99f

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

projects/client/RabbitMQ.Client/src/client/messagepatterns/Subscription.cs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -187,6 +187,17 @@ public void Ack(BasicDeliverEventArgs evt)
187187
}
188188
}
189189

190+
///<summary>If LatestEvent is non-null, passes it to
191+
///Nack(BasicDeliverEventArgs, false, requeue). Causes LatestEvent to become
192+
///null.</summary>
193+
public void Nack(bool requeue)
194+
{
195+
if (m_latestEvent != null) {
196+
Nack(m_latestEvent, false, requeue);
197+
}
198+
}
199+
200+
190201
///<summary>If LatestEvent is non-null, passes it to
191202
///Nack(BasicDeliverEventArgs, multiple, requeue). Causes LatestEvent to become
192203
///null.</summary>

0 commit comments

Comments
 (0)