16 references to WaitType
Aspire.Hosting (11)
ApplicationModel\ResourceNotificationService.cs (3)
405
WaitType
.WaitUntilHealthy => WaitUntilHealthyAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken),
406
WaitType
.WaitForCompletion => WaitUntilCompletionAsync(resource, waitAnnotation.Resource, waitAnnotation.ExitCode, cancellationToken),
407
WaitType
.WaitUntilStarted => WaitUntilStartedAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken),
ApplicationModel\WaitAnnotation.cs (3)
18
public sealed class WaitAnnotation(IResource resource,
WaitType
waitType, int exitCode = 0) : IResourceAnnotation
28
public
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)
224
executable.Annotations.Add(new WaitAnnotation(project, waitType:
WaitType
.WaitUntilHealthy));
256
containerExecutable.Annotations.Add(new WaitAnnotation(container, waitType:
WaitType
.WaitUntilHealthy));
ResourceBuilderExtensions.cs (3)
1210
return builder.WithAnnotation(new WaitAnnotation(dependency.Resource,
WaitType
.WaitUntilHealthy) { WaitBehavior = waitBehavior });
1324
return builder.WithAnnotation(new WaitAnnotation(dependency.Resource,
WaitType
.WaitUntilStarted) { WaitBehavior = waitBehavior });
1396
return builder.WithAnnotation(new WaitAnnotation(dependency.Resource,
WaitType
.WaitForCompletion, exitCode));
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
144
WaitType
.WaitForCompletion => "service_completed_successfully",
Aspire.Hosting.Tests (4)
AddConnectionStringTests.cs (2)
89
Assert.Equal(
WaitType
.WaitUntilStarted, wa.WaitType);
94
Assert.Equal(
WaitType
.WaitUntilStarted, wa.WaitType);
WaitForTests.cs (2)
812
Assert.Equal(
WaitType
.WaitUntilStarted, waitAnnotation.WaitType);
828
Assert.Equal(
WaitType
.WaitUntilStarted, waitAnnotation.WaitType);