AsyncCircuitBreakerPolicy<TResult>
public class AsyncCircuitBreakerPolicy<TResult> : AsyncPolicy<TResult>, ICircuitBreakerPolicy<TResult>, ICircuitBreakerPolicy, IsPolicy
A circuit-breaker policy that can be applied to async delegates.
Gets the state of the underlying circuit.
Gets the last exception handled by the circuit-breaker.
This will be null if no exceptions have been handled by the circuit-breaker since the circuit last closed.
Gets the last result returned from a user delegate which the circuit-breaker handled.
This will be default(TResult) if no results have been handled by the circuit-breaker since the circuit last closed, or if the last event handled by the circuit was an exception.
Isolates (opens) the circuit manually, and holds it in this state until a call to Reset is made.
Closes the circuit, and resets any statistics controlling automated circuit-breaking.