Class CircuitBreakerPolicyOptions
- Namespace
- DocuWare.Platform.ServerClient.Policy.CircuitBreaker
- Assembly
- DocuWare.Platform.ServerClient.dll
Definitions of the circuit breaker policy options.
public class CircuitBreakerPolicyOptions
- Inheritance
-
CircuitBreakerPolicyOptions
- Inherited Members
Constructors
CircuitBreakerPolicyOptions()
Initializes a new instance of the CircuitBreakerPolicyOptions class.
public CircuitBreakerPolicyOptions()
CircuitBreakerPolicyOptions(int, int, TimeSpan)
Initializes a new instance of the CircuitBreakerPolicyOptions class.
public CircuitBreakerPolicyOptions(int closedFailureThreshold, int halfOpenedFailureThreshold, TimeSpan breakDuration)
Parameters
| Type | Name | Description |
|---|---|---|
| int | closedFailureThreshold | |
| int | halfOpenedFailureThreshold | |
| TimeSpan | breakDuration |
Properties
BreakDuration
Gets the duration the circuit remains open before becoming half-open.
public TimeSpan BreakDuration { get; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
ClosedFailureThreshold
Gets the number of exceptions that can be thrown before the circuit is opened.
public int ClosedFailureThreshold { get; }
Property Value
| Type | Description |
|---|---|
| int |
HalfOpenedFailureThreshold
Gets the number of exceptions that can be thrown before the circuit is opened again.
public int HalfOpenedFailureThreshold { get; }
Property Value
| Type | Description |
|---|---|
| int |