Esempio n. 1
0
 internal CircuitBreakerState MoveToBrokenState()
 {
     lock (syncLock)
     {
         circuitBreakerState = new BrokenOpenState(this);
         return(circuitBreakerState);
     }
 }
Esempio n. 2
0
 internal CircuitBreakerState MoveToMendingState()
 {
     lock (syncLock)
     {
         circuitBreakerState = new MendingHalfState(this);
         return(circuitBreakerState);
     }
 }
Esempio n. 3
0
 internal CircuitBreakerState MoveToHealthyState()
 {
     lock (syncLock)
     {
         circuitBreakerState = new HealthyClosedState(this);
         return(circuitBreakerState);
     }
 }