public static void UnregisterInstrumentationConsumer(InstrumentationConsumer consumer)
 {
     lock (counters) {
         handlers.Remove(consumer);
         foreach (var c in counters.Values)
         {
             c.Handlers.Remove(consumer);
         }
     }
     UpdateCounterStatus();
 }
 public static void RegisterInstrumentationConsumer(InstrumentationConsumer consumer)
 {
     lock (counters) {
         handlers.Add(consumer);
         foreach (var c in counters.Values)
         {
             if (consumer.SupportsCounter(c))
             {
                 c.Handlers.Add(consumer);
             }
         }
     }
     UpdateCounterStatus();
 }
		public static void RegisterInstrumentationConsumer (InstrumentationConsumer consumer)
		{
			lock (counters) {
				handlers.Add (consumer);
				foreach (var c in counters.Values) {
					if (consumer.SupportsCounter (c))
						c.Handlers.Add (consumer);
				}
			}
			UpdateCounterStatus ();
		}
		public static void UnregisterInstrumentationConsumer (InstrumentationConsumer consumer)
		{
			lock (counters) {
				handlers.Remove (consumer);
				foreach (var c in counters.Values)
					c.Handlers.Remove (consumer);
			}
			UpdateCounterStatus ();
		}