Inheritance: RemoteProcedureCallEventArgs
コード例 #1
0
 internal void FireErrorMessageReceivedEvent(RemoteProcedureCallResponseEventArgs args)
 {
     if (ErrorMessageReceived != null)
         ErrorMessageReceived(this, args);
 }
コード例 #2
0
 internal void FireAcknowledgeMessageReceivedEvent(RemoteProcedureCallResponseEventArgs args)
 {
     if (AcknowledgeMessageReceived != null)
         AcknowledgeMessageReceived(this, args);
 }
コード例 #3
0
 void OnAckMessageReceived(object sender, RemotingMessageReceivedEventArgs args)
 {
     RemoteProcedureCallResponseEventArgs rpc = new RemoteProcedureCallResponseEventArgs(args.Destination, args.Operation, (dynamic)args.Message.Body, args.Result.Body);
     _extensionManager.FireAcknowledgeMessageReceivedEvent(rpc);
     args.Result.Body = rpc.ResponseBody;
 }
コード例 #4
0
 void OnErrorMessageReceived(object sender, RemotingMessageReceivedEventArgs args)
 {
     RemoteProcedureCallResponseEventArgs rpc = new RemoteProcedureCallResponseEventArgs(args.Destination, args.Operation, (dynamic[])args.Message.Body, args.Error == null ? null : args.Error.RootCause);
     _extensionManager.FireErrorMessageReceivedEvent(rpc);
     if (args.Error != null)
         args.Error.RootCause = rpc.ResponseBody;
 }
コード例 #5
0
 private void pm_ErrorMessageReceived(object sender, RemoteProcedureCallResponseEventArgs e)
 {
     _dispatcher.InvokeAsync(() => _packetUi.PacketListBox.Items.Add(new ErrorListItem(e.Destination, e.Operation, e.Parameters, e.ResponseBody,e.InvokedByProxy)));
 }