Class StandardHttpShieldOptions
Configures the standard HTTP resilience pipeline and its request handler.
public sealed class StandardHttpShieldOptions
- Inheritance
-
StandardHttpShieldOptions
- Inherited Members
Constructors
StandardHttpShieldOptions()
public StandardHttpShieldOptions()
Properties
AttemptTimeout
Configures the per-attempt timeout. Defaults to 10 seconds. Set InfiniteTimeSpan to omit this stage.
public TimeoutOptions AttemptTimeout { get; set; }
Property Value
CircuitBreaker
Configures the circuit breaker. Defaults to a 50% failure ratio over 30 seconds, with a minimum throughput of 10 and a 15-second break.
public CircuitBreakerOptions<HttpResponseMessage> CircuitBreaker { get; set; }
Property Value
ConcurrencyLimit
Optionally configures a concurrency limiter between the circuit breaker and attempt timeout. The limiter is disabled when this property is null.
public ConcurrencyLimitOptions? ConcurrencyLimit { get; set; }
Property Value
Handler
Configures request replay and optional endpoint routing.
public ShieldHttpHandlerOptions Handler { get; set; }
Property Value
Retry
Configures transient retries. Defaults to three jittered exponential retries that honour
Retry-After headers. Notifications observe the live handled response, which is
disposed before the next attempt starts.
public RetryOptions<HttpResponseMessage> Retry { get; set; }
Property Value
TotalTimeout
Configures the outer total timeout. Defaults to 30 seconds. Set InfiniteTimeSpan to omit this stage.
public TimeoutOptions TotalTimeout { get; set; }
Property Value
UseRetryAfterHeader
Whether retry delays honour the response's Retry-After header. Defaults to
true and composes with
DelayGenerator
by using the longer delay. When the server asks to wait longer than
MaxDelay or the remaining total timeout,
the shield stops retrying and returns that response instead of retrying early.
public bool UseRetryAfterHeader { get; set; }
Property Value
Methods
Clone()
Creates a copy with independent nested configuration objects.
public StandardHttpShieldOptions Clone()
Returns
- StandardHttpShieldOptions
A new options instance with copied configuration containers.
Remarks
Delegates and runtime collaborators, such as retry budgets and circuit monitors, retain their references. Captured delegate state and collaborator state are not cloned.