示例#1
0
 protected CircuitBreakerState(PaymentServiceCircuitBreaker circuitBreaker)
 {
     this.circuitBreaker = circuitBreaker;
 }
示例#2
0
 public ClosedState(PaymentServiceCircuitBreaker circuitBreaker)
     : base(circuitBreaker)
 {
     circuitBreaker.ResetFailureCount();
 }
 public HalfOpenState(PaymentServiceCircuitBreaker circuitBreaker) : base(circuitBreaker)
 {
 }
示例#4
0
 public OpenState(PaymentServiceCircuitBreaker circuitBreaker)
     : base(circuitBreaker)
 {
     openDateTime = DateTime.UtcNow;
 }