protected bool Equals(CounterInstanceName other)
 {
     return(string.Equals(CounterName, other.CounterName) && string.Equals(InstanceName, other.InstanceName));
 }
Ejemplo n.º 2
0
 IPerformanceCounterInstance GetCachedInstance(CounterInstanceName name)
 {
     return(counterCache.GetOrAdd(name,
                                  x => PerformanceCounterHelper.TryToInstantiatePerformanceCounter(name.CounterName, name.InstanceName)));
 }