예제 #1
0
        public static void ConnectBetweenInstances(string[] urls, string explorerUrl)
        {
            var doesExplorerResponds = WebRequester.Ping(explorerUrl);

            if (doesExplorerResponds)
            {
                ConnectPeers(explorerUrl, urls[0]);
            }

            //it's intentionally up to urls.Length-1
            for (int i = 0; i < urls.Length - 1; i++)
            {
                ConnectPeers(urls[i], urls[i + 1]);
            }
        }