コード例 #1
0
        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";
        }
コード例 #2
0
        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");
        }
コード例 #3
0
        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);
        }
コード例 #4
0
ファイル: Uploader.cs プロジェクト: northshoreab/Hygia
        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);
        }