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