/// <summary> /// Generates a definition key for a the provided performance counter. /// This is not instance-specific and should not be used for a metric. /// </summary> /// <param name="newPerfCounter"></param> /// <returns></returns> internal static string GetKey(PerformanceCounter newPerfCounter) { //generate a key using the central method return(MetricDefinition.GetKey(PerfCounterMetricType, newPerfCounter.CategoryName, newPerfCounter.CounterName)); }