Example #1
0
 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);
     }
 }
Example #2
0
 protected void ForwardMessageTo(NodeInfo target, NodeMessage msg)
 {
     if (target.Equals(Identity))
     {
         MessageBus.Publish(msg);
     }
     else
     {
         var forwardingSocket = ForwardingSockets[target.HostAndPort];
         Marshaller.Send(msg, forwardingSocket);
     }
 }
Example #3
0
 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);
     }
 }
Example #4
0
 protected void SendReplyTo(NodeInfo target, NodeReply reply)
 {
     if (target.Equals(Identity))
     {
         MessageBus.Publish(reply);
     }
     else
     {
         var forwardingSocket = ForwardingSockets[target.HostAndPort];
         Marshaller.Send(reply, forwardingSocket);
     }
 }