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)); } }
protected override Task Execute(IAsyncBasicConsumer consumer) { return(consumer.HandleBasicCancel(_consumerTag)); }