internal CircuitBreakerState MoveToBrokenState() { lock (syncLock) { circuitBreakerState = new BrokenOpenState(this); return(circuitBreakerState); } }
internal CircuitBreakerState MoveToMendingState() { lock (syncLock) { circuitBreakerState = new MendingHalfState(this); return(circuitBreakerState); } }
internal CircuitBreakerState MoveToHealthyState() { lock (syncLock) { circuitBreakerState = new HealthyClosedState(this); return(circuitBreakerState); } }