Example #1
0
 private void StopSinks()
 {
     lock (this)
     {
         foreach (KeyValuePair <string, MetricsSinkAdapter> entry in sinks)
         {
             MetricsSinkAdapter sa = entry.Value;
             Log.Debug("Stopping metrics sink " + entry.Key + ": class=" + sa.Sink().GetType()
                       );
             sa.Stop();
         }
         sinks.Clear();
     }
 }