25 references to StopOnResourceUnavailable
Aspire.Hosting (12)
ApplicationModel\ResourceNotificationService.cs (7)
58DefaultWaitBehavior = WaitBehavior.StopOnResourceUnavailable; 77DefaultWaitBehavior = serviceProvider.GetService<IOptions<ResourceNotificationServiceOptions>>()?.Value.DefaultWaitBehavior ?? WaitBehavior.StopOnResourceUnavailable; 232/// When <see cref="WaitBehavior.StopOnResourceUnavailable"/> is specified the wait operation 241if (waitBehavior == WaitBehavior.StopOnResourceUnavailable && !TryGetCurrentState(resourceName, out _)) 290WaitBehavior.StopOnResourceUnavailable => snapshot.HealthStatus == HealthStatus.Healthy || 399if (waitBehavior == WaitBehavior.StopOnResourceUnavailable) 438WaitBehavior.StopOnResourceUnavailable => snapshot.State?.Text == KnownResourceStates.Running ||
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
681re => ResourceNotificationService.ShouldYieldHealthyWait(WaitBehavior.StopOnResourceUnavailable, re.Snapshot),
Backchannel\DashboardUrlsHelper.cs (1)
58WaitBehavior.StopOnResourceUnavailable,
DistributedApplicationBuilder.cs (1)
423o.DefaultWaitBehavior = options.DisableDashboard ? WaitBehavior.StopOnResourceUnavailable : WaitBehavior.WaitOnResourceUnavailable;
ResourceBuilderExtensions.cs (2)
2410/// <para>When <see cref="WaitBehavior.StopOnResourceUnavailable"/> is specified, the wait operation 2533/// <para>When <see cref="WaitBehavior.StopOnResourceUnavailable"/> is specified, the wait operation
Aspire.Hosting.Testing (3)
DistributedApplicationHostingTestingExtensions.cs (1)
88WaitBehavior.StopOnResourceUnavailable,
DistributedApplicationTestingBuilder.cs (1)
403options => options.DefaultWaitBehavior = WaitBehavior.StopOnResourceUnavailable);
DistributedApplicationTestingBuilderOptions.cs (1)
53/// <see cref="WaitBehavior.StopOnResourceUnavailable"/> after AppHost configuration. To use a different default
Aspire.Hosting.Testing.Tests (1)
DashboardTestingBuilderTests.cs (1)
106WaitBehavior.StopOnResourceUnavailable,
Aspire.Hosting.Tests (9)
ResourceNotificationTests.cs (1)
1386() => notificationService.WaitForResourceHealthyAsync("does-not-exist", WaitBehavior.StopOnResourceUnavailable));
WaitForTests.cs (8)
208.WaitFor(dependency, WaitBehavior.StopOnResourceUnavailable); 238dependency.WaitFor(failToStart, WaitBehavior.StopOnResourceUnavailable); 246WaitBehavior.StopOnResourceUnavailable 262dependency.WaitFor(failToStart, WaitBehavior.StopOnResourceUnavailable); 280[InlineData(WaitBehavior.StopOnResourceUnavailable, typeof(DistributedApplicationException), "Stopped waiting for resource 'redis' to become healthy because it failed to start.")] 293dependency.WaitFor(failToStart, WaitBehavior.StopOnResourceUnavailable); 823.WaitForStart(dependency, WaitBehavior.StopOnResourceUnavailable); 830Assert.Equal(WaitBehavior.StopOnResourceUnavailable, waitAnnotation.WaitBehavior);