public void SetValue(CachePerformanceCounterType type, long value)
 {
     this.GetCounter(type).RawValue = value < 0 ? 0 : value;
 }
 public void IncrementBy(CachePerformanceCounterType type, long value)
 {
     this.GetCounter(type).IncrementBy(value);
 }
 public void Increment(CachePerformanceCounterType type)
 {
     this.GetCounter(type).Increment();
 }
 private PerformanceCounter GetCounter(CachePerformanceCounterType type) => this.counters[(int)type];
 public void Decrement(CachePerformanceCounterType type)
 {
     GetCounter(type).Decrement();
 }
Exemple #6
0
 private PerformanceCounter GetCounter(CachePerformanceCounterType type)
 {
     return(this.counters[(int)type]);
 }