15 references to Timeout
Microsoft.Extensions.Http.Resilience (5)
Hedging\Internals\Validators\HttpStandardHedgingResilienceOptionsCustomValidator.cs (4)
17if (options.Endpoint.Timeout.Timeout > options.TotalRequestTimeout.Timeout) 21$"Attempt Timeout: {options.Endpoint.Timeout.Timeout.TotalSeconds}s"); 24var 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)
46options.Endpoint.Timeout.Timeout = options.TotalRequestTimeout.Timeout; 47options.Endpoint.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds * 2); 51options.Endpoint.Timeout.Timeout = options.TotalRequestTimeout.Timeout; 53TimeSpan.FromMilliseconds(options.Endpoint.Timeout.Timeout.TotalMilliseconds * 2) + TimeSpan.FromMilliseconds(10); 83options.Endpoint.Timeout.Timeout = TimeSpan.FromSeconds(3); 91options.Endpoint.Timeout.Timeout = options.TotalRequestTimeout.Timeout; 92options.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)
332opt.Endpoint.Timeout.Timeout = TimeSpan.FromSeconds(200);