public string post_upload_processfaultmessage(UploadInputModel input) { var command = new ProcessFaultMessage { FaultEnvelopeId = input.FaultEnvelopeId, Headers = input.Headers, Body = input.Body }; Bus.Send(command); return "ok"; }
public string post_upload_processfaultmessage(UploadInputModel input) { var command = new ProcessFaultMessage { FaultEnvelopeId = input.FaultEnvelopeId, Headers = input.Headers, Body = input.Body }; Bus.Send(command); return("ok"); }
void OnTransportMessageReceived(object sender, TransportMessageReceivedEventArgs e) { var transportMessage = e.Message; //send first so that we get the new id that we can use for retries MessageSender.Send(transportMessage, errorLogAddress); var message = new ProcessFaultMessage { FaultEnvelopeId = transportMessage.Id, Headers = transportMessage.Headers, Body = Encoding.UTF8.GetString(transportMessage.Body)//wil only work for text serialization }; BackendUploader.Upload(message); }
void OnTransportMessageReceived(object sender, TransportMessageReceivedEventArgs e) { var transportMessage = e.Message; //send first so that we get the new id that we can use for retries MessageSender.Send(transportMessage,errorLogAddress); var message = new ProcessFaultMessage { FaultEnvelopeId = transportMessage.Id, Headers = transportMessage.Headers, Body = Encoding.UTF8.GetString(transportMessage.Body)//wil only work for text serialization }; BackendUploader.Upload(message); }