Ejemplo n.º 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);
        }
Ejemplo n.º 2
0
        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;
        }
Ejemplo n.º 3
0
 private static void Dispose(ClusterTopology topology)
 {
     foreach (var member in topology.Members)
         member.Dispose();
 }