public void StopAllClusters() { lock (Clusters) { Parallel.ForEach(Clusters.Keys, key => { var info = Clusters[key]; Parallel.For(1, info.Silos.Count, i => siloHost.StopSilo(info.Silos[i])); siloHost.StopSilo(info.Silos[0]); }); Clusters.Clear(); } }
public void StopSilo(SiloHandle instance) { siloHost.StopSilo(instance); }