protected void ForwardMessageTo(NodeInfo target, NodeMessage msg) { if (target.Equals(Node.Identity)) { SendLocalMessage(msg); } else { var forwardingSocket = Node.ForwardingSockets[target.HostAndPort]; Node.Marshaller.Send(msg, forwardingSocket); } }
protected void ForwardMessageTo(NodeInfo target, NodeMessage msg) { if (target.Equals(Identity)) { MessageBus.Publish(msg); } else { var forwardingSocket = ForwardingSockets[target.HostAndPort]; Marshaller.Send(msg, forwardingSocket); } }
protected void SendReplyTo(NodeInfo target, NodeReply reply) { if (target.Equals(Node.Identity)) { SendLocalMessage(reply); } else { var forwardingSocket = Node.ForwardingSockets[target.HostAndPort]; Node.Marshaller.Send(reply, forwardingSocket); } }
protected void SendReplyTo(NodeInfo target, NodeReply reply) { if (target.Equals(Identity)) { MessageBus.Publish(reply); } else { var forwardingSocket = ForwardingSockets[target.HostAndPort]; Marshaller.Send(reply, forwardingSocket); } }