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
FailureThreshold
Gets or sets the failure threshold before breaking.
public int FailureThreshold { get; set; }
Property Value
IsEnabled
Gets or sets whether circuit breaker is enabled.
public bool IsEnabled { get; set; }
Property Value
MinimumThroughput
Gets or sets the minimum throughput before circuit can break.
public int MinimumThroughput { get; set; }
Property Value
SamplingDuration
Gets or sets the sampling duration for failure rate calculation.
public TimeSpan SamplingDuration { get; set; }
Property Value
Methods
Clone()
Creates a shallow copy of this PollyCircuitBreakerSettings instance.
public PollyCircuitBreakerSettings Clone()