Table of Contents

Class PollyCircuitBreakerSettings

Namespace
WorkflowForge.Extensions.Resilience.Polly.Options
Assembly
WorkflowForge.Extensions.Resilience.Polly.dll

Configuration settings for Polly circuit breaker.

public sealed class PollyCircuitBreakerSettings
Inheritance
PollyCircuitBreakerSettings
Inherited Members

Properties

BreakDuration

Gets or sets the duration to keep the circuit open.

public TimeSpan BreakDuration { get; set; }

Property Value

TimeSpan

FailureThreshold

Gets or sets the failure threshold before breaking.

public int FailureThreshold { get; set; }

Property Value

int

IsEnabled

Gets or sets whether circuit breaker is enabled.

public bool IsEnabled { get; set; }

Property Value

bool

MinimumThroughput

Gets or sets the minimum throughput before circuit can break.

public int MinimumThroughput { get; set; }

Property Value

int

SamplingDuration

Gets or sets the sampling duration for failure rate calculation.

public TimeSpan SamplingDuration { get; set; }

Property Value

TimeSpan

Methods

Clone()

Creates a shallow copy of this PollyCircuitBreakerSettings instance.

public PollyCircuitBreakerSettings Clone()

Returns

PollyCircuitBreakerSettings