コード例 #1
0
 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();
     }
 }
コード例 #2
0
 public void StopSilo(SiloHandle instance)
 {
     siloHost.StopSilo(instance);
 }