30 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)
448o.DefaultWaitBehavior = options.DisableDashboard ? WaitBehavior.StopOnResourceUnavailable : WaitBehavior.WaitOnResourceUnavailable;
ResourceBuilderExtensions.cs (2)
2801/// <para>When <see cref="WaitBehavior.StopOnResourceUnavailable"/> is specified, the wait operation 2924/// <para>When <see cref="WaitBehavior.StopOnResourceUnavailable"/> is specified, the wait operation
Aspire.Hosting.Azure.EntraId.Tests (2)
EntraIdProvisioningTests.cs (2)
1927.WaitFor(entra, WaitBehavior.StopOnResourceUnavailable) 1932Assert.Equal(WaitBehavior.StopOnResourceUnavailable, wait.WaitBehavior);
Aspire.Hosting.Testing (3)
DistributedApplicationHostingTestingExtensions.cs (1)
88WaitBehavior.StopOnResourceUnavailable,
DistributedApplicationTestingBuilder.cs (1)
399options => 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)
107WaitBehavior.StopOnResourceUnavailable,
Aspire.Hosting.Tests (12)
ResourceNotificationTests.cs (4)
1588[InlineData(WaitBehavior.StopOnResourceUnavailable)] 1794() => notificationService.WaitForResourceHealthyAsync(resource.Name, WaitBehavior.StopOnResourceUnavailable, cts.Token)); 1829() => notificationService.WaitForResourceHealthyAsync(resource.Name, WaitBehavior.StopOnResourceUnavailable)); 1844() => notificationService.WaitForResourceHealthyAsync("does-not-exist", WaitBehavior.StopOnResourceUnavailable));
WaitForTests.cs (8)
209.WaitFor(dependency, WaitBehavior.StopOnResourceUnavailable); 239dependency.WaitFor(failToStart, WaitBehavior.StopOnResourceUnavailable); 247WaitBehavior.StopOnResourceUnavailable 263dependency.WaitFor(failToStart, WaitBehavior.StopOnResourceUnavailable); 281[InlineData(WaitBehavior.StopOnResourceUnavailable, typeof(DistributedApplicationException), "Stopped waiting for resource 'redis' to become healthy because it failed to start.")] 294dependency.WaitFor(failToStart, WaitBehavior.StopOnResourceUnavailable); 918.WaitForStart(dependency, WaitBehavior.StopOnResourceUnavailable); 925Assert.Equal(WaitBehavior.StopOnResourceUnavailable, waitAnnotation.WaitBehavior);