Esempio n. 1
0
 /// <summary>
 /// Reject delivery
 /// </summary>
 public void RejectOnError(Exception exception, bool requeue)
 {
     _channel.BasicNack(DeliveryTag, true, requeue);
     _statusService.ConsumingError(_queue, exception);
 }
 /// <summary>
 /// Report about task logic error
 /// </summary>
 public static void ConsumingError(this IMqStatusService srv, string srcQueue, Exception e)
 {
     srv.ConsumingError(srcQueue, new StatusError(e));
 }