19 references to AttemptTimeout
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
474options.AttemptTimeout.Timeout = TimeSpan.FromMinutes(2);
Aspire.Playground.Tests (2)
AppHostTests.cs (2)
131resilience.AttemptTimeout.Timeout = TimeSpan.FromSeconds(60); 133resilience.CircuitBreaker.SamplingDuration = resilience.AttemptTimeout.Timeout * 2;
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
474options.AttemptTimeout.Timeout = TimeSpan.FromMinutes(2);
Microsoft.Extensions.Http.Resilience (5)
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (4)
17if (options.AttemptTimeout.Timeout > options.TotalRequestTimeout.Timeout) 21$"Attempt Timeout: {options.AttemptTimeout.Timeout.TotalSeconds}s"); 24if (options.CircuitBreaker.SamplingDuration < TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * CircuitBreakerTimeoutMultiplier)) 29$"Attempt Timeout: {options.AttemptTimeout.Timeout.TotalSeconds}s");
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
87.AddTimeout(options.AttemptTimeout);
Microsoft.Extensions.Http.Resilience.Tests (10)
Resilience\HttpClientBuilderExtensionsTests.Standard.cs (1)
189options.AttemptTimeout.Timeout = TimeSpan.FromSeconds(2);
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (7)
52options.AttemptTimeout.Timeout = options.TotalRequestTimeout.Timeout; 53options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2); 57options.AttemptTimeout.Timeout = options.TotalRequestTimeout.Timeout; 58options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2) + TimeSpan.FromMilliseconds(10); 84options.AttemptTimeout.Timeout = TimeSpan.FromSeconds(3); 92options.AttemptTimeout.Timeout = options.TotalRequestTimeout.Timeout; 93options.CircuitBreaker.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds / 2);
Resilience\HttpStandardResilienceOptionsTests.cs (2)
17_options.AttemptTimeout.Timeout.Should().Be(TimeSpan.FromSeconds(10)); 24_options.AttemptTimeout.Name.Should().Be("Standard-AttemptTimeout");