5 instantiations of WaitAnnotation
Aspire.Hosting (5)
Exec\ExecResourceManager.cs (2)
224executable.Annotations.Add(new WaitAnnotation(project, waitType: WaitType.WaitUntilHealthy)); 256containerExecutable.Annotations.Add(new WaitAnnotation(container, waitType: WaitType.WaitUntilHealthy));
ResourceBuilderExtensions.cs (3)
1210return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilHealthy) { WaitBehavior = waitBehavior }); 1324return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilStarted) { WaitBehavior = waitBehavior }); 1396return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitForCompletion, exitCode));
12 references to WaitAnnotation
Aspire.Hosting (4)
ApplicationModel\ResourceNotificationService.cs (2)
389if (!resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)) 395foreach (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)
216or ResourceRelationshipAnnotation or WaitAnnotation))
Aspire.Hosting.Docker (2)
DockerComposeServiceResource.cs (2)
129if (TargetResource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)) 131foreach (var waitAnnotation in waitAnnotations)
Aspire.Hosting.Tests (6)
AddConnectionStringTests.cs (1)
81cs.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations);
WaitForTests.cs (5)
786Assert.True(containerResource.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)); 808Assert.True(resource.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)); 809var waitAnnotation = Assert.Single(waitAnnotations); 824Assert.True(resource.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)); 825var waitAnnotation = Assert.Single(waitAnnotations);