Example #1
0
        public IEnumerable <NetworkNode> WelcomeNode([FromBody] NetworkNode receivedNode)
        {
            var nodesList = _networkManager.GetAllNetworkNodes();

            //Add received node to my personal peer list
            _networkManager.AddNode(receivedNode);
            //Broadcast my new list to known nodes except the one that just called me
            _networkManager.CallNetworkNodesUpdate();
            //return my additional Info
            return(nodesList);
        }