28 references to StopOnResourceUnavailable
Aspire.Hosting (12)
ApplicationModel\ResourceNotificationService.cs (7)
58DefaultWaitBehavior = WaitBehavior.StopOnResourceUnavailable; 77DefaultWaitBehavior = serviceProvider.GetService<IOptions<ResourceNotificationServiceOptions>>()?.Value.DefaultWaitBehavior ?? WaitBehavior.StopOnResourceUnavailable; 237/// When <see cref="WaitBehavior.StopOnResourceUnavailable"/> is specified the wait operation 244if (waitBehavior == WaitBehavior.StopOnResourceUnavailable && !TryGetCurrentState(resourceName, out _)) 319WaitBehavior.StopOnResourceUnavailable => snapshot.HealthStatus == HealthStatus.Healthy || 428if (waitBehavior == WaitBehavior.StopOnResourceUnavailable) 467WaitBehavior.StopOnResourceUnavailable => snapshot.State?.Text == KnownResourceStates.Running ||
Backchannel\AuxiliaryBackchannelRpcTarget.cs (1)
703re => ResourceNotificationService.ShouldYieldHealthyWait(WaitBehavior.StopOnResourceUnavailable, re.Snapshot),
Backchannel\DashboardUrlsHelper.cs (1)
58WaitBehavior.StopOnResourceUnavailable,
DistributedApplicationBuilder.cs (1)
438o.DefaultWaitBehavior = options.DisableDashboard ? WaitBehavior.StopOnResourceUnavailable : WaitBehavior.WaitOnResourceUnavailable;
ResourceBuilderExtensions.cs (2)
2531/// <para>When <see cref="WaitBehavior.StopOnResourceUnavailable"/> is specified, the wait operation 2654/// <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 (12)
ResourceNotificationTests.cs (4)
1421[InlineData(WaitBehavior.StopOnResourceUnavailable)] 1627() => notificationService.WaitForResourceHealthyAsync(resource.Name, WaitBehavior.StopOnResourceUnavailable, cts.Token)); 1662() => notificationService.WaitForResourceHealthyAsync(resource.Name, WaitBehavior.StopOnResourceUnavailable)); 1677() => 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);