예제 #1
0
 private void AttemptReset()
 {
     lock (StateTransitionLockerObject)
     {
         // Must be from open.
         if (state == openState)
         {
             StopTimer();
             state = halfOpenState;
             HalfOpen?.Invoke(this, EventArgs.Empty);
         }
     }
 }
예제 #2
0
 void OnHalfOpen()
 {
     HalfOpen?.Invoke(this, EventArgs.Empty);
 }