internal void FireRemoteProcedureCallEvent(RemoteProcedureCallEventArgs args) { if (RemoteProcedureCall != null) RemoteProcedureCall(this, args); }
void OnRemotingMessageReceived(object sender, RemotingMessageReceivedEventArgs args) { RemoteProcedureCallEventArgs rpc = new RemoteProcedureCallEventArgs(args.Destination, args.Operation, (dynamic)args.Message.Body); _extensionManager.FireRemoteProcedureCallEvent(rpc); args.Message.Body = rpc.Parameters; }