API Reference
Class
CircuitBreaker
Simple circuit breaker implementation for monitoring Active Directory connectivity.
Inheritance
- Object
- CircuitBreaker
Constructors
public CircuitBreaker(Int32 failureThreshold = 3, Nullable<TimeSpan> openDuration = null) #Creates a new circuit breaker.
Parameters
- failureThreshold System.Int32 = 3
- Number of consecutive failures before opening.
- openDuration System.Nullable{System.TimeSpan} = null
- Time to stay open before allowing retries.
Methods
public Void RecordFailure() #Returns:
VoidRecords a failed operation and opens the breaker if threshold exceeded.
public Void RecordSuccess() #Returns:
VoidRecords a successful operation and closes the breaker if needed.