示例#1
0
        public void AddToCluster(string clusterTag, string url)
        {
            var clusterNode = new ClusterNode(clusterTag, url, _contextPool, this, _cts.Token);

            _clusterNodes[clusterTag] = clusterNode;
            var task = clusterNode.StartListening();

            GC.KeepAlive(task); // we are explicitly not waiting on this task
        }