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