Ejemplo n.º 1
0
        public ICounter GetOrCreateCounter(string counterName, CounterFlag flag, Dictionary <string, string> settings, List <CounterDimension> dims)
        {
            var counter = new LocalCounter(counterName, flag, settings, dims);

            this.Counters.Add(counter);
            return(counter);
        }
Ejemplo n.º 2
0
 public LocalCounter(
     string counterName,
     CounterFlag flag,
     Dictionary <string, string> settings,
     List <CounterDimension> dims)
 {
     this.CounterName = counterName;
     this.Flag        = flag;
     this.Settings    = settings;
     this.Dims        = dims;
     this.Value       = 0;
 }
Ejemplo n.º 3
0
 public ICounter GetOrCreateCounter(string counterName, CounterFlag flag) =>
 GetOrCreateCounter(counterName, flag, new Dictionary <string, string>(), new List <CounterDimension>());