AsyncCircuitBreakerTResultSyntax
Builds a AsyncPolicy<T> that will function like a Circuit Breaker.
The circuit will break if handledEventsAllowedBeforeBreaking exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception or result that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break again for another durationOfBreak; if no exception or handled result is encountered, the circuit will reset.
Builds a AsyncPolicy<T> that will function like a Circuit Breaker.
The circuit will break if handledEventsAllowedBeforeBreaking exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception or result that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break again for another durationOfBreak; if no exception or handled result is encountered, the circuit will reset.
Builds a AsyncPolicy<T> that will function like a Circuit Breaker.
The circuit will break if handledEventsAllowedBeforeBreaking exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception or result that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break again for another durationOfBreak; if no exception or handled result is encountered, the circuit will reset.
Builds a AsyncPolicy<T> that will function like a Circuit Breaker.
The circuit will break if handledEventsAllowedBeforeBreaking exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception or result that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break again for another durationOfBreak; if no exception or handled result is encountered, the circuit will reset.
Builds a AsyncPolicy<T> that will function like a Circuit Breaker.
The circuit will break if handledEventsAllowedBeforeBreaking exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception or result that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break again for another durationOfBreak; if no exception or handled result is encountered, the circuit will reset.
Builds a AsyncPolicy<T> that will function like a Circuit Breaker.
The circuit will break if handledEventsAllowedBeforeBreaking exceptions or results that are handled by this policy are encountered consecutively.
The circuit will stay broken for the durationOfBreak. Any attempt to execute this policy while the circuit is broken, will immediately throw a BrokenCircuitException containing the exception or result that broke the circuit.
If the first action after the break duration period results in a handled exception or result, the circuit will break again for another durationOfBreak; if no exception or handled result is encountered, the circuit will reset.