public static bool CheckCounters()
 {
     return
         (PerformanceCounterCategory.Exists(categoryName) &&
          Counters.All(counter => PerformanceCounterCategory.CounterExists(counter.CounterName, categoryName)));
 }
Beispiel #2
0
 static bool CheckCountersExist()
 {
     return(Counters.All(counter => PerformanceCounterCategory.CounterExists(counter.CounterName, categoryName)));
 }