<PackageReference Include="Polly" Version="5.0.1-v5-0-alpha0001" />

CircuitBreakerPolicy

public class CircuitBreakerPolicy : Policy
A circuit-breaker policy that can be applied to delegates.
public CircuitState CircuitState { get; }

Gets the state of the underlying circuit.

public Exception LastException { get; }

Gets the last exception handled by the circuit-breaker.

public void Isolate()

Isolates (opens) the circuit manually, and holds it in this state until a call to Reset is made.

public void Reset()

Closes the circuit, and resets any statistics controlling automated circuit-breaking.