コード例 #1
0
ファイル: StarTopologyHelper.cs プロジェクト: eigenein/cloudy
 public static int GetThreadsCount(IEnvironment environment)
 {
     int threadsCount;
     if (!environment.TryGetRemoteValue(Namespaces.Default, "Topology.ThreadsCount",
         out threadsCount))
     {
         throw new KeyNotFoundException("The required key was not found on the master");
     }
     return threadsCount;
 }
コード例 #2
0
ファイル: StarTopologyHelper.cs プロジェクト: eigenein/cloudy
 public static StarRank GetGreatestRank(IEnvironment environment)
 {
     StarRank rank;
     if (!environment.TryGetRemoteValue(Namespaces.Default, "Topology.GreatestRank",
         out rank))
     {
         throw new KeyNotFoundException("The required key was not found on the master");
     }
     return rank;
 }