Skip to content
DocsTry Aspire
DocsTry

WaitAnnotation Constructors

ClassConstructors1 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)
{
// ...
}
}
resourceIResourceThe resource that will be waited on.
waitTypeWaitTypeThe type of wait to apply to the dependency resource.
exitCodeintoptionalThe 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.