Interface ICircuitBreakerPolicy
- Namespace
- Polly.CircuitBreaker
- Assembly
- Polly.dll
Defines properties and methods common to all circuit-breaker policies.
public interface ICircuitBreakerPolicy : IsPolicy
- Inherited Members
Properties
CircuitState
Gets the state of the underlying circuit.
CircuitState CircuitState { get; }
Property Value
LastException
Gets the last exception handled by the circuit-breaker.
Exception LastException { get; }
Property Value
Methods
Isolate()
Isolates (opens) the circuit manually, and holds it in this state until a call to Reset() is made.
void Isolate()
Reset()
Closes the circuit, and resets any statistics controlling automated circuit-breaking.
void Reset()