Beispiel #1
0
        public void setup()
        {
            lan = new ManagedLan();
            topology = new ClusterTopology();
            var members = new List<string>(){"a","b","c"};

            foreach (var member in members)
                topology.Members.Add(new Node(member, members, lan.GetLink(member)));

            Thread.Sleep(1500);
        }
        private static ClusterTopology ClusterNodes(List<string> members)
        {
            var lan = new ManagedLan();
            var topology = new ClusterTopology();

            foreach (var member in members)
                topology.Members.Add(new Node(member, members, lan.GetLink(member)));

            topology.AwaitToStabilize();

            return topology;
        }