protected CircuitBreakerState(PaymentServiceCircuitBreaker circuitBreaker) { this.circuitBreaker = circuitBreaker; }
public ClosedState(PaymentServiceCircuitBreaker circuitBreaker) : base(circuitBreaker) { circuitBreaker.ResetFailureCount(); }
public HalfOpenState(PaymentServiceCircuitBreaker circuitBreaker) : base(circuitBreaker) { }
public OpenState(PaymentServiceCircuitBreaker circuitBreaker) : base(circuitBreaker) { openDateTime = DateTime.UtcNow; }