15 references to Timeout
Microsoft.Extensions.Http.Resilience (5)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (4)
17
if (options.Endpoint.
Timeout
.Timeout > options.TotalRequestTimeout.Timeout)
21
$"Attempt Timeout: {options.Endpoint.
Timeout
.Timeout.TotalSeconds}s");
24
var timeout = TimeSpan.FromMilliseconds(options.Endpoint.
Timeout
.Timeout.TotalMilliseconds * CircuitBreakerTimeoutMultiplier);
30
$"Attempt Timeout: {options.Endpoint.
Timeout
.Timeout.TotalSeconds}s");
Hedging\ResilienceHttpClientBuilderExtensions.Hedging.cs (1)
139
.AddTimeout(options.Endpoint.
Timeout
);
Microsoft.Extensions.Http.Resilience.Tests (10)
Hedging\HttpStandardHedgingResilienceOptionsCustomValidatorTests.cs (7)
46
options.Endpoint.
Timeout
.Timeout = options.TotalRequestTimeout.Timeout;
47
options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.
Timeout
.Timeout.TotalMilliseconds * 2);
51
options.Endpoint.
Timeout
.Timeout = options.TotalRequestTimeout.Timeout;
53
TimeSpan.FromMilliseconds(options.Endpoint.
Timeout
.Timeout.TotalMilliseconds * 2) + TimeSpan.FromMilliseconds(10);
83
options.Endpoint.
Timeout
.Timeout = TimeSpan.FromSeconds(3);
91
options.Endpoint.
Timeout
.Timeout = options.TotalRequestTimeout.Timeout;
92
options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.
Timeout
.Timeout.TotalMilliseconds / 2);
Hedging\HttpStandardHedgingResilienceOptionsTests.cs (2)
23
_options.Endpoint.
Timeout
.Timeout.Should().Be(TimeSpan.FromSeconds(10));
28
_options.Endpoint.
Timeout
.Name.Should().Be("StandardHedging-AttemptTimeout");
Hedging\StandardHedgingTests.cs (1)
332
opt.Endpoint.
Timeout
.Timeout = TimeSpan.FromSeconds(200);