C# Class Polly.CircuitBreaker.CircuitBreakerPolicy

Show file Open project: App-vNext/Polly

Public Methods

Method Description
Isolate ( ) : void

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

Reset ( ) : void

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

Private Methods

Method Description
CircuitBreakerPolicy ( Action exceptionPolicy, IEnumerable exceptionPredicates, ICircuitController breakerController ) : System
CircuitBreakerPolicy ( Task>.Func asyncExceptionPolicy, IEnumerable exceptionPredicates, ICircuitController breakerController ) : System

Method Details

Isolate() public method

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

Reset() public method

Closes the circuit, and resets any statistics controlling automated circuit-breaking.
public Reset ( ) : void
return void