Example #1
0
        public static void UnregisterCounter(StatCounter counter)
        {
            if (counter == null)
            {
                return;
            }

            lock (syncRoot)
            {
                Stats.Remove(counter);
            }
        }
Example #2
0
        public static void RegisterCounter(StatCounter counter)
        {
            if (counter == null)
            {
                return;
            }

            lock (syncRoot)
            {
                Stats.Add(counter);
            }
        }