Table of Contents

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

CircuitState

LastException

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.

Exception LastException { get; }

Property Value

Exception

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()