Example #1
0
 public virtual void MarkSuccess()
 {
     if (circuitOpen.Value && circuitOpen.CompareAndSet(true, false))
     {
         // win the thread race to reset metrics
         // Unsubscribe from the current stream to reset the health counts stream.  This only affects the health counts view,
         // and all other metric consumers are unaffected by the reset
         metrics.ResetStream();
     }
 }