Class CircuitBreakerStrategyOptions
- Namespace
- Polly.CircuitBreaker
- Assembly
- Polly.Core.dll
The options for circuit breaker resilience strategy.
public class CircuitBreakerStrategyOptions : CircuitBreakerStrategyOptions<object>
- Inheritance
-
CircuitBreakerStrategyOptions
- Inherited Members
Remarks
The circuit will break if, within any time-slice of duration SamplingDuration, the proportion of actions resulting in a handled exception exceeds FailureRatio, provided also that the number of actions through the circuit in the time-slice is at least MinimumThroughput.
The circuit will stay broken for the BreakDuration. Any attempt to execute this while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception that broke the circuit.
If the first action after the break duration period results in a handled exception, the circuit will break again for another BreakDuration; if no exception is thrown, the circuit will reset.