SimpleCircuitBreakerStrategyOptions<TResult>
The options for the simple circuit breaker resilience strategy.
using System.ComponentModel.DataAnnotations;
using System.Runtime.CompilerServices;
namespace Polly.CircuitBreaker
{
[System.Runtime.CompilerServices.NullableContext(2)]
[System.Runtime.CompilerServices.Nullable(new byte[] {
0,
1
})]
public class SimpleCircuitBreakerStrategyOptions<TResult> : CircuitBreakerStrategyOptions<TResult>
{
[Range(1, int.MaxValue)]
public int FailureThreshold { get; set; } = 100;
}
}