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