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)
1586return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilHealthy) { WaitBehavior = waitBehavior }); 1700return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilStarted) { WaitBehavior = waitBehavior }); 1774return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitForCompletion, exitCode));
28 references to WaitAnnotation
Aspire.Hosting (8)
ApplicationModel\ResourceExtensions.cs (4)
1243/// <item>Wait dependencies via <see cref="WaitAnnotation"/></item> 1279/// <item>Wait dependencies via <see cref="WaitAnnotation"/></item> 1433if (resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)) 1435foreach (var waitAnnotation in waitAnnotations)
ApplicationModel\ResourceNotificationService.cs (2)
416if (!resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)) 422foreach (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)
185if (TargetResource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)) 187foreach (var waitAnnotation in waitAnnotations)
Aspire.Hosting.JavaScript (1)
JavaScriptHostingExtensions.cs (1)
949resource.Resource.Annotations.OfType<WaitAnnotation>()
Aspire.Hosting.JavaScript.Tests (5)
IntegrationTests.cs (1)
50Assert.True(nodeApp.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations));
PackageInstallationTests.cs (1)
74Assert.False(nodeResource.TryGetAnnotationsOfType<WaitAnnotation>(out _));
ResourceCreationTests.cs (3)
122Assert.True(nodeResource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)); 123var waitAnnotation = Assert.Single(waitAnnotations); 190Assert.False(nodeResource.TryGetAnnotationsOfType<WaitAnnotation>(out _));
Aspire.Hosting.Python.Tests (6)
AddPythonAppTests.cs (6)
793var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>(); 794var waitForCompletionAnnotation = Assert.Single(waitAnnotations); 2124var installerWaits = installerResource.Annotations.OfType<WaitAnnotation>() 2224var installerWaits = installerResource.Annotations.OfType<WaitAnnotation>() 2354var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList(); 2387var waitAnnotations = pythonAppResource.Annotations.OfType<WaitAnnotation>().ToList();
Aspire.Hosting.Tests (6)
AddConnectionStringTests.cs (1)
82cs.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations);
WaitForTests.cs (5)
787Assert.True(containerResource.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)); 809Assert.True(resource.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)); 810var waitAnnotation = Assert.Single(waitAnnotations); 825Assert.True(resource.Resource.TryGetAnnotationsOfType<WaitAnnotation>(out var waitAnnotations)); 826var waitAnnotation = Assert.Single(waitAnnotations);