예제 #1
0
 protected override async Task Execute(ModelBase model, IAsyncBasicConsumer consumer)
 {
     try
     {
         await consumer.HandleBasicCancel(_consumerTag).ConfigureAwait(false);
     }
     catch (Exception e)
     {
         var details = new Dictionary <string, object>
         {
             { "consumer", consumer },
             { "context", "HandleBasicCancel" }
         };
         model.OnCallbackException(CallbackExceptionEventArgs.Build(e, details));
     }
 }
예제 #2
0
 protected override Task Execute(IAsyncBasicConsumer consumer)
 {
     return(consumer.HandleBasicCancel(_consumerTag));
 }