Example #1
0
 private void completeRequestWithRequestedResponse(Envelope envelope)
 {
     try
     {
         deserialize(envelope);
         _replies.Handle(envelope);
     }
     catch (Exception e)
     {
         Logger.LogException(e, envelope.CorrelationId, "Failure during reply handling.");
     }
 }
Example #2
0
        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));
            }
        }