private void completeRequestWithRequestedResponse(Envelope envelope) { try { deserialize(envelope); _replies.Handle(envelope); } catch (Exception e) { Logger.LogException(e, envelope.CorrelationId, "Failure during reply handling."); } }
private Task completeRequestWithRequestedResponse(Envelope envelope) { try { deserialize(envelope); _replies.Handle(envelope); return(envelope.Callback.MarkComplete()); } catch (Exception e) { Logger.LogException(e, envelope.Id, "Failure during reply handling."); return(envelope.Callback.MoveToErrors(envelope, e)); } }