Class DataResilienceOptions
This options class contains an array of resilience strategies (retry and circuit breaking settings). To specify as particular resilience strategy, a connection can specify a ResilienceKey.
Inheritance
System.Object
DataResilienceOptions
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: ArgentSea
Assembly: ArgentSea.dll
Syntax
public class DataResilienceOptions
Examples
For example, you might configure your appsettings.json like this:
"ResilienceStrategies": [
{
"ResilienceKey": "remote",
"RetryCount": "6",
"RetryInterval": "250",
"RetryLengthening": "Finonacci",
"CircuitBreakerFailureCount": "20",
"CircuitBreakerTestInterval": "5000"
},
{
"ResilienceKey": "local",
"RetryCount": "6",
"RetryInterval": "150",
"RetryLengthening": "Linear",
"CircuitBreakerFailureCount": "10",
"CircuitBreakerTestInterval": "5000"
}
]
Properties
| Improve this Doc View SourceDataResilienceStrategies
Declaration
public DataResilienceConfiguration[] DataResilienceStrategies { get; set; }
Property Value
Type | Description |
---|---|
DataResilienceConfiguration[] |