Exemplo n.º 1
0
 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;
 }
Exemplo n.º 2
0
 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;
 }