40 references to WaitType
Aspire.Hosting (15)
ApplicationModel\ResourceNotificationService.cs (6)
144
using var activity = ProfilingTelemetry.StartResourceWaitForDependency(Configuration, resource, dependency,
WaitType
.WaitUntilHealthy, waitBehavior);
300
using var activity = ProfilingTelemetry.StartResourceWaitForDependency(Configuration, resource, dependency,
WaitType
.WaitForCompletion, waitBehavior: null);
450
using var activity = ProfilingTelemetry.StartResourceWaitForDependency(Configuration, resource, dependency,
WaitType
.WaitUntilStarted, waitBehavior);
555
WaitType
.WaitUntilHealthy => WaitUntilHealthyAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken, OnDependencyReadyAsync),
556
WaitType
.WaitForCompletion => WaitUntilCompletionAsync(resource, waitAnnotation.Resource, waitAnnotation.ExitCode, cancellationToken, OnDependencyReadyAsync),
557
WaitType
.WaitUntilStarted => WaitUntilStartedAsync(resource, waitAnnotation.Resource, waitAnnotation.WaitBehavior ?? DefaultWaitBehavior, cancellationToken, OnDependencyReadyAsync),
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"/>.
Diagnostics\ProfilingTelemetry.cs (2)
483
public static ActivityScope StartResourceWaitForDependency(IConfiguration? configuration, IResource resource, IResource dependency,
WaitType
waitType, WaitBehavior? waitBehavior)
993
public void SetDependencyWait(IResource resource, IResource dependency,
WaitType
waitType, WaitBehavior? waitBehavior)
ResourceBuilderExtensions.cs (3)
2460
return builder.WithAnnotation(new WaitAnnotation(dependency.Resource,
WaitType
.WaitUntilHealthy) { WaitBehavior = waitBehavior });
2593
return builder.WithAnnotation(new WaitAnnotation(dependency.Resource,
WaitType
.WaitUntilStarted) { WaitBehavior = waitBehavior });
2672
return builder.WithAnnotation(new WaitAnnotation(dependency.Resource,
WaitType
.WaitForCompletion, exitCode));
TerminalResourceBuilderExtensions.cs (1)
287
parent.Annotations.Add(new WaitAnnotation(terminalHosts[i],
WaitType
.WaitUntilStarted));
Aspire.Hosting.Docker (1)
DockerComposeServiceResource.cs (1)
200
WaitType
.WaitForCompletion => "service_completed_successfully",
Aspire.Hosting.Dotnet (1)
DotnetProjectBuildCoordinator.cs (1)
123
annotation => annotation.WaitType is
WaitType
.WaitForCompletion &&
Aspire.Hosting.Dotnet.Tests (2)
DotnetProjectBuildCoordinatorTests.cs (2)
3044
Assert.Equal(
WaitType
.WaitForCompletion, wait.WaitType);
3060
Assert.Equal(
WaitType
.WaitForCompletion, wait.WaitType);
Aspire.Hosting.MongoDB.Tests (1)
ReplicaSet\AddMongoDBReplicaSetTests.cs (1)
56
Assert.Equal(
WaitType
.WaitUntilStarted, wait.WaitType);
Aspire.Hosting.Python.Tests (1)
AddPythonAppTests.cs (1)
798
Assert.Equal(
WaitType
.WaitForCompletion, waitForCompletionAnnotation.WaitType);
Aspire.Hosting.Tests (19)
AddConnectionStringTests.cs (2)
90
Assert.Equal(
WaitType
.WaitUntilStarted, wa.WaitType);
95
Assert.Equal(
WaitType
.WaitUntilStarted, wa.WaitType);
ResourceNotificationTests.cs (14)
363
resource.Annotations.Add(new WaitAnnotation(dependency1,
WaitType
.WaitUntilStarted));
364
resource.Annotations.Add(new WaitAnnotation(dependency2,
WaitType
.WaitUntilStarted));
411
resource.Annotations.Add(new WaitAnnotation(dependency1,
WaitType
.WaitUntilHealthy));
412
resource.Annotations.Add(new WaitAnnotation(dependency2,
WaitType
.WaitUntilHealthy));
467
resource.Annotations.Add(new WaitAnnotation(dependency1,
WaitType
.WaitForCompletion));
468
resource.Annotations.Add(new WaitAnnotation(dependency2,
WaitType
.WaitForCompletion));
517
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
560
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
593
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
635
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
668
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
707
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
744
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
843
resource.Annotations.Add(new WaitAnnotation(dependency,
WaitType
.WaitUntilStarted));
WaitForTests.cs (2)
813
Assert.Equal(
WaitType
.WaitUntilStarted, waitAnnotation.WaitType);
829
Assert.Equal(
WaitType
.WaitUntilStarted, waitAnnotation.WaitType);
WithTerminalTests.cs (1)
180
Assert.Equal(
WaitType
.WaitUntilStarted, single.WaitType);