45 references to WaitType
Aspire.Hosting (15)
ApplicationModel\ResourceNotificationService.cs (6)
149using var activity = ProfilingTelemetry.StartResourceWaitForDependency(Configuration, resource, dependency, WaitType.WaitUntilHealthy, waitBehavior); 329using var activity = ProfilingTelemetry.StartResourceWaitForDependency(Configuration, resource, dependency, WaitType.WaitForCompletion, waitBehavior: null); 479using var activity = ProfilingTelemetry.StartResourceWaitForDependency(Configuration, resource, dependency, WaitType.WaitUntilStarted, waitBehavior); 584WaitType.WaitUntilHealthy => WaitUntilHealthyAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken, OnDependencyReadyAsync), 585WaitType.WaitForCompletion => WaitUntilCompletionAsync(resource, waitAnnotation.Resource, waitAnnotation.ExitCode, cancellationToken, OnDependencyReadyAsync), 586WaitType.WaitUntilStarted => WaitUntilStartedAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken, OnDependencyReadyAsync),
ApplicationModel\WaitAnnotation.cs (3)
18public sealed class WaitAnnotation(IResource resource, WaitType waitType, int exitCode = 0) : IResourceAnnotation 28public WaitType WaitType { get; } = waitType; 31/// The behavior of the wait. Only applicable when <see cref="WaitType"/> is <see cref="WaitType.WaitUntilHealthy"/>.
Diagnostics\ProfilingTelemetry.cs (2)
483public static ActivityScope StartResourceWaitForDependency(IConfiguration? configuration, IResource resource, IResource dependency, WaitType waitType, WaitBehavior? waitBehavior) 993public void SetDependencyWait(IResource resource, IResource dependency, WaitType waitType, WaitBehavior? waitBehavior)
ResourceBuilderExtensions.cs (3)
2581return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilHealthy) { WaitBehavior = waitBehavior }); 2714return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitUntilStarted) { WaitBehavior = waitBehavior }); 2793return builder.WithAnnotation(new WaitAnnotation(dependency.Resource, WaitType.WaitForCompletion, exitCode));
TerminalResourceBuilderExtensions.cs (1)
278parent.Annotations.Add(new WaitAnnotation(terminalHosts[i], WaitType.WaitUntilStarted));
Aspire.Hosting.Azure.Tests (1)
AzureServiceBusExtensionsTests.cs (1)
978Assert.Equal(WaitType.WaitUntilHealthy, wait.WaitType);
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
201WaitType.WaitForCompletion => "service_completed_successfully",
Aspire.Hosting.Dotnet (1)
DotnetProjectBuildCoordinator.cs (1)
128annotation => annotation.WaitType is WaitType.WaitForCompletion &&
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectBuildCoordinatorTests.cs (2)
4025Assert.Equal(WaitType.WaitForCompletion, wait.WaitType); 4041Assert.Equal(WaitType.WaitForCompletion, wait.WaitType);
Aspire.Hosting.MongoDB.Tests (5)
AddMongoDBTests.cs (4)
145Assert.Equal(WaitType.WaitUntilHealthy, wait.WaitType); 177Assert.Equal(WaitType.WaitUntilHealthy, wait.WaitType); 182Assert.Equal(WaitType.WaitUntilHealthy, wait.WaitType); 186Assert.Equal(WaitType.WaitUntilStarted, memberWait.WaitType);
ReplicaSet\AddMongoDBReplicaSetTests.cs (1)
56Assert.Equal(WaitType.WaitUntilStarted, wait.WaitType);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
798Assert.Equal(WaitType.WaitForCompletion, waitForCompletionAnnotation.WaitType);
Aspire.Hosting.Tests (19)
AddConnectionStringTests.cs (2)
90Assert.Equal(WaitType.WaitUntilStarted, wa.WaitType); 95Assert.Equal(WaitType.WaitUntilStarted, wa.WaitType);
ResourceNotificationTests.cs (14)
409resource.Annotations.Add(new WaitAnnotation(dependency1, WaitType.WaitUntilStarted)); 410resource.Annotations.Add(new WaitAnnotation(dependency2, WaitType.WaitUntilStarted)); 457resource.Annotations.Add(new WaitAnnotation(dependency1, WaitType.WaitUntilHealthy)); 458resource.Annotations.Add(new WaitAnnotation(dependency2, WaitType.WaitUntilHealthy)); 513resource.Annotations.Add(new WaitAnnotation(dependency1, WaitType.WaitForCompletion)); 514resource.Annotations.Add(new WaitAnnotation(dependency2, WaitType.WaitForCompletion)); 563resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted)); 606resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted)); 639resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted)); 681resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted)); 714resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted)); 753resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted)); 790resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted)); 889resource.Annotations.Add(new WaitAnnotation(dependency, WaitType.WaitUntilStarted));
WaitForTests.cs (2)
813Assert.Equal(WaitType.WaitUntilStarted, waitAnnotation.WaitType); 829Assert.Equal(WaitType.WaitUntilStarted, waitAnnotation.WaitType);
WithTerminalTests.cs (1)
208Assert.Equal(WaitType.WaitUntilStarted, single.WaitType);