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; }
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; }