Пример #1
0
        public void Register(NetworkNodeInfo info)
        {
            var client    = new TcpNodeServiceClient(info);
            var neighbors = client.Register(NodeService.Info);

            NodeService.UpdateNodes(neighbors);
        }
Пример #2
0
 public NetworkNodeManager(string tcpAddress,int tcpPort, string pipeName)
 {
     _tcpPort = tcpPort;
     _pipeName = pipeName;
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }
Пример #3
0
 public NetworkNodeManager(string tcpAddress)
 {
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }
Пример #4
0
 public NetworkNodeManager(string tcpAddress, int tcpPort, string pipeName)
 {
     _tcpPort    = tcpPort;
     _pipeName   = pipeName;
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }
Пример #5
0
 public NetworkNodeManager(string tcpAddress)
 {
     NodeService = new NodeService(tcpAddress, _tcpPort, _pipeName);
 }