WaitAnnotation(IResource, WaitType, Int32) Constructor

Definition

Represents a wait relationship between two resources.

public WaitAnnotation (Aspire.Hosting.ApplicationModel.IResource resource, Aspire.Hosting.ApplicationModel.WaitType waitType, int exitCode = 0);
new Aspire.Hosting.ApplicationModel.WaitAnnotation : Aspire.Hosting.ApplicationModel.IResource * Aspire.Hosting.ApplicationModel.WaitType * int -> Aspire.Hosting.ApplicationModel.WaitAnnotation
Public Sub New (resource As IResource, waitType As WaitType, Optional exitCode As Integer = 0)

Parameters

resource
IResource

The resource that will be waited on.

waitType
WaitType

The type of wait to apply to the dependency resource.

exitCode
Int32

The exit code that the resource must return for the wait to be satisfied.

Remarks

The holder of this annotation is waiting on the resource in the Resource property.

Applies to