11 references to CircuitBreaker
Aspire.EndToEnd.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
475
options.
CircuitBreaker
.SamplingDuration = TimeSpan.FromMinutes(5); // needs to be at least double the AttemptTimeout to pass options validation
Aspire.Playground.Tests (1)
AppHostTests.cs (1)
133
resilience.
CircuitBreaker
.SamplingDuration = resilience.AttemptTimeout.Timeout * 2;
Aspire.Workload.Tests (1)
tests\Shared\WorkloadTesting\AspireProject.cs (1)
475
options.
CircuitBreaker
.SamplingDuration = TimeSpan.FromMinutes(5); // needs to be at least double the AttemptTimeout to pass options validation
Microsoft.Extensions.Http.Resilience (3)
Resilience\Internal\Validators\HttpStandardResilienceOptionsCustomValidator.cs (2)
24
if (options.
CircuitBreaker
.SamplingDuration < TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * CircuitBreakerTimeoutMultiplier))
28
$"Sampling Duration: {options.
CircuitBreaker
.SamplingDuration.TotalSeconds}s," +
Resilience\ResilienceHttpClientBuilderExtensions.StandardResilience.cs (1)
86
.AddCircuitBreaker(options.
CircuitBreaker
)
Microsoft.Extensions.Http.Resilience.Tests (5)
Resilience\HttpStandardResilienceOptionsCustomValidatorTests.cs (4)
25
options.
CircuitBreaker
.SamplingDuration = TimeSpan.FromSeconds(1);
53
options.
CircuitBreaker
.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2);
58
options.
CircuitBreaker
.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds * 2) + TimeSpan.FromMilliseconds(10);
93
options.
CircuitBreaker
.SamplingDuration = TimeSpan.FromMilliseconds(options.AttemptTimeout.Timeout.TotalMilliseconds / 2);
Resilience\HttpStandardResilienceOptionsTests.cs (1)
23
_options.
CircuitBreaker
.Name.Should().Be("Standard-CircuitBreaker");