Example #1
0
        public void Register(NetworkNodeInfo info)
        {
            var client    = new TcpNodeServiceClient(info);
            var neighbors = client.Register(NodeService.Info);

            NodeService.UpdateNodes(neighbors);
        }
 public NetworkNodeManager(string tcpAddress,int tcpPort, string pipeName)
 {
     _tcpPort = tcpPort;
     _pipeName = pipeName;
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }
 public NetworkNodeManager(string tcpAddress)
 {
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }
Example #4
0
 public NetworkNodeManager(string tcpAddress, int tcpPort, string pipeName)
 {
     _tcpPort    = tcpPort;
     _pipeName   = pipeName;
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }
Example #5
0
 public NetworkNodeManager(string tcpAddress)
 {
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }