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