16 references to WaitType
Aspire.Hosting (11)
ApplicationModel\ResourceNotificationService.cs (3)
405WaitType.WaitUntilHealthy => WaitUntilHealthyAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken), 406WaitType.WaitForCompletion => WaitUntilCompletionAsync(resource, waitAnnotation.Resource, waitAnnotation.ExitCode, cancellationToken), 407WaitType.WaitUntilStarted => WaitUntilStartedAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken),
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"/>.
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));
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
144WaitType.WaitForCompletion => "service_completed_successfully",
Aspire.Hosting.Tests (4)
AddConnectionStringTests.cs (2)
89Assert.Equal(WaitType.WaitUntilStarted, wa.WaitType); 94Assert.Equal(WaitType.WaitUntilStarted, wa.WaitType);
WaitForTests.cs (2)
812Assert.Equal(WaitType.WaitUntilStarted, waitAnnotation.WaitType); 828Assert.Equal(WaitType.WaitUntilStarted, waitAnnotation.WaitType);