Table of Contents

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

TypeNameDescription
intclosedFailureThreshold
inthalfOpenedFailureThreshold
TimeSpanbreakDuration

Properties

BreakDuration

Gets the duration the circuit remains open before becoming half-open.

public TimeSpan BreakDuration { get; }

Property Value

TypeDescription
TimeSpan

ClosedFailureThreshold

Gets the number of exceptions that can be thrown before the circuit is opened.

public int ClosedFailureThreshold { get; }

Property Value

TypeDescription
int

HalfOpenedFailureThreshold

Gets the number of exceptions that can be thrown before the circuit is opened again.

public int HalfOpenedFailureThreshold { get; }

Property Value

TypeDescription
int