<PackageReference Include="Polly" Version="8.4.2" />

ICircuitController<TResult>

interface ICircuitController<TResult>
Interface for controlling a circuit breaker.

Gets the state of the circuit.

Gets the last exception that was handled by the circuit breaker.

TResult LastHandledResult { get; }

Gets the last result that was handled by the circuit breaker.

void Isolate()

Isolates the circuit breaker.

void OnActionFailure(DelegateResult<TResult> outcome, Context context)

Handles the action failure event.

Handles the action pre-execute event.

void OnActionSuccess(Context context)

Handles the action success event.

void OnCircuitReset(Context context)

Handles the circuit reset event.

void Reset()

Resets the circuit breaker.