public bool Put(MetricName name, IPerformanceCounterProxy concreteCounter) { if (!Exists(name)) { _cachedCounters[name] = new CachedPerformanceCounterProxy(() => concreteCounter); return true; } // already exists - not overriding return false; }
public bool Put(MetricName name, IPerformanceCounterProxy concreteCounter) { if (!Exists(name)) { _cachedCounters[name] = new CachedPerformanceCounterProxy(() => concreteCounter); return(true); } // already exists - not overriding return(false); }