Esempio n. 1
0
 private GaugeMetric <bool> GetOrAdd(MetricName name, GaugeMetric <bool> metric)
 {
     if (_store.Contains(name))
     {
         return(_store[name]);
     }
     _store.AddOrUpdate(name, metric);
     return(metric);
 }
Esempio n. 2
0
 public bool TryGetValue(MetricName name, out GaugeMetric <bool> metric)
 {
     return(_metrics.TryGetValue(name, out metric));
 }
Esempio n. 3
0
 public GaugeMetric <bool> GetOrAdd(MetricName name, GaugeMetric <bool> metric)
 {
     return(_metrics.GetOrAdd(name, metric));
 }