public static void UnregisterCounter(StatCounter counter) { if (counter == null) { return; } lock (syncRoot) { Stats.Remove(counter); } }
public static void RegisterCounter(StatCounter counter) { if (counter == null) { return; } lock (syncRoot) { Stats.Add(counter); } }