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