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