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

CircuitBreakerManualControl

Allows manual control of the circuit-breaker.

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.