Пример #1
0
 public static void Requeue(IAcknowledgmentCallback ackCallback)
 {
     if (ackCallback != null)
     {
         ackCallback.Acknowledge(Status.REQUEUE);
     }
 }
Пример #2
0
 public static void Accept(IAcknowledgmentCallback ackCallback)
 {
     if (ackCallback != null)
     {
         ackCallback.Acknowledge(Status.ACCEPT);
     }
 }
Пример #3
0
 public static void Reject(IAcknowledgmentCallback ackCallback)
 {
     if (ackCallback != null)
     {
         ackCallback.Acknowledge(Status.REJECT);
     }
 }
Пример #4
0
 public static void AutoNack(IAcknowledgmentCallback ackCallback)
 {
     if (ackCallback != null && ackCallback.IsAutoAck && !ackCallback.IsAcknowledged)
     {
         ackCallback.Acknowledge(Status.REJECT);
     }
 }