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