internal void FireErrorMessageReceivedEvent(RemoteProcedureCallResponseEventArgs args) { if (ErrorMessageReceived != null) ErrorMessageReceived(this, args); }
internal void FireAcknowledgeMessageReceivedEvent(RemoteProcedureCallResponseEventArgs args) { if (AcknowledgeMessageReceived != null) AcknowledgeMessageReceived(this, args); }
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; }
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; }
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))); }