Skip to content
Docs Try Aspire

WaitAnnotation Constructors

Class Constructors 1 member
Represents a wait relationship between two resources.
Constructor(IResource, WaitType, int) Section titled Constructor(IResource, WaitType, int)
Represents a wait relationship between two resources.
public sealed class WaitAnnotation
{
public WaitAnnotation(
IResource resource,
WaitType waitType,
int exitCode = 0)
{
// ...
}
}
resource IResource The resource that will be waited on.
waitType WaitType The type of wait to apply to the dependency resource.
exitCode int optional The exit code that the resource must return for the wait to be satisfied.
The holder of this annotation is waiting on the resource in the WaitAnnotation.Resource property.