Class ResilienceOptions
Retry and circuit breaker settings for the Chapar MassTransit transport.
These are applied automatically when using AddChaparMassTransit.
Inherited Members
Namespace: Chapar.MassTransit.Options
Assembly: Chapar.MassTransit.dll
Syntax
public sealed class ResilienceOptions
Properties
| Edit this page View SourceCircuitBreakerEnabled
Whether the circuit breaker is enabled.
Declaration
public bool CircuitBreakerEnabled { get; set; }
Property Value
| Type | Description |
|---|---|
| bool |
CircuitBreakerFailureThreshold
Failure percentage threshold that trips the circuit breaker.
Declaration
public int CircuitBreakerFailureThreshold { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
CircuitBreakerResetInterval
Period after which the circuit breaker attempts to reset.
Declaration
public TimeSpan CircuitBreakerResetInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |
RetryCount
Number of immediate retries when a transient failure occurs.
Declaration
public int RetryCount { get; set; }
Property Value
| Type | Description |
|---|---|
| int |
RetryInterval
Interval between immediate retries.
Declaration
public TimeSpan RetryInterval { get; set; }
Property Value
| Type | Description |
|---|---|
| TimeSpan |