<PackageReference Include="Polly.Core" Version="8.0.0-alpha.7" />

CircuitBreakerManualControl

Allows manual control of the circuit-breaker.

Initializes a new instance of the CircuitBreakerManualControl class.

public CircuitBreakerManualControl(bool isIsolated)

Initializes a new instance of the CircuitBreakerManualControl class.

public Task CloseAsync(CancellationToken cancellationToken = default)

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

public void Dispose()

Disposes the current class.

public Task IsolateAsync(CancellationToken cancellationToken = default)

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