5 instantiations of WaitAnnotation
Aspire.Hosting (5)
Exec\ExecResourceManager.cs (2)
224
executable.Annotations.Add(new
WaitAnnotation
(project, waitType: WaitType.WaitUntilHealthy));
256
containerExecutable.Annotations.Add(new
WaitAnnotation
(container, waitType: WaitType.WaitUntilHealthy));
ResourceBuilderExtensions.cs (3)
1469
return builder.WithAnnotation(new
WaitAnnotation
(dependency.Resource, WaitType.WaitUntilHealthy) { WaitBehavior = waitBehavior });
1583
return builder.WithAnnotation(new
WaitAnnotation
(dependency.Resource, WaitType.WaitUntilStarted) { WaitBehavior = waitBehavior });
1655
return builder.WithAnnotation(new
WaitAnnotation
(dependency.Resource, WaitType.WaitForCompletion, exitCode));
20 references to WaitAnnotation
Aspire.Hosting (4)
ApplicationModel\ResourceNotificationService.cs (2)
397
if (!resource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations))
403
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.NodeJs (1)
NodeExtensions.cs (1)
561
resource.Resource.Annotations.OfType<
WaitAnnotation
>()
Aspire.Hosting.NodeJs.Tests (5)
IntegrationTests.cs (1)
50
Assert.True(nodeApp.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations));
PackageInstallationTests.cs (1)
69
Assert.False(nodeResource.TryGetAnnotationsOfType<
WaitAnnotation
>(out _));
ResourceCreationTests.cs (3)
122
Assert.True(nodeResource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations));
123
var
waitAnnotation = Assert.Single(waitAnnotations);
187
Assert.False(nodeResource.TryGetAnnotationsOfType<
WaitAnnotation
>(out _));
Aspire.Hosting.Python.Tests (2)
AddPythonAppTests.cs (2)
571
var waitAnnotations = pythonAppResource.Annotations.OfType<
WaitAnnotation
>();
572
var
waitForCompletionAnnotation = Assert.Single(waitAnnotations);
Aspire.Hosting.Tests (6)
AddConnectionStringTests.cs (1)
81
cs.Resource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations);
WaitForTests.cs (5)
787
Assert.True(containerResource.Resource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations));
809
Assert.True(resource.Resource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations));
810
var
waitAnnotation = Assert.Single(waitAnnotations);
825
Assert.True(resource.Resource.TryGetAnnotationsOfType<
WaitAnnotation
>(out var waitAnnotations));
826
var
waitAnnotation = Assert.Single(waitAnnotations);