4 instantiations of WaitAnnotation
Aspire.Hosting (4)
Exec\ExecResourceManager.cs (2)
224
executable.Annotations.Add(new
WaitAnnotation
(project, waitType: WaitType.WaitUntilHealthy));
255
containerExecutable.Annotations.Add(new
WaitAnnotation
(container, waitType: WaitType.WaitUntilHealthy));
ResourceBuilderExtensions.cs (2)
1220
return builder.WithAnnotation(new
WaitAnnotation
(dependency.Resource, WaitType.WaitUntilHealthy) { WaitBehavior = waitBehavior });
1292
return builder.WithAnnotation(new
WaitAnnotation
(dependency.Resource, WaitType.WaitForCompletion, exitCode));
7 references to WaitAnnotation
Aspire.Hosting (4)
ApplicationModel\ResourceNotificationService.cs (2)
368
if (!resource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations))
374
foreach (
var
waitAnnotation in waitAnnotations)
ApplicationModel\WaitAnnotation.cs (1)
15
/// The holder of this annotation is waiting on the resource in the <see cref="
WaitAnnotation
.Resource"/> property.
Exec\ExecResourceManager.cs (1)
216
or ResourceRelationshipAnnotation or
WaitAnnotation
))
Aspire.Hosting.Docker (2)
DockerComposeServiceResource.cs (2)
129
if (TargetResource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations))
131
foreach (
var
waitAnnotation in waitAnnotations)
Aspire.Hosting.Tests (1)
WaitForTests.cs (1)
785
Assert.True(containerResource.Resource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations));