Skip to content
Docs Try Aspire

IResourceWithWaitSupport

Interface TypeScript
📦 Aspire.Hosting.MySql v13.2.0-preview.1.26159.1
interface IResourceWithWaitSupport {
waitFor(dependency: IResource): IResourceWithWaitSupport;
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport;
waitForStart(dependency: IResource): IResourceWithWaitSupport;
waitForStartWithBehavior(
dependency: IResource,
waitBehavior: WaitBehavior): IResourceWithWaitSupport;
waitForWithBehavior(
dependency: IResource,
waitBehavior: WaitBehavior): IResourceWithWaitSupport;
}

Methods

method waitFor builder
Waits for another resource to be ready
waitFor(dependency: IResource): IResourceWithWaitSupport
dependency IResource
IResourceWithWaitSupport
method waitForCompletion builder
Waits for resource completion
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport
dependency IResource
exitCode number optional = 0
IResourceWithWaitSupport
method waitForStart builder
Waits for another resource to start
waitForStart(dependency: IResource): IResourceWithWaitSupport
dependency IResource
IResourceWithWaitSupport
method waitForStartWithBehavior builder
Waits for another resource to start with specific behavior
waitForStartWithBehavior(
dependency: IResource,
waitBehavior: WaitBehavior): IResourceWithWaitSupport
dependency IResource
waitBehavior WaitBehavior
IResourceWithWaitSupport
method waitForWithBehavior builder
Waits for another resource with specific behavior
waitForWithBehavior(
dependency: IResource,
waitBehavior: WaitBehavior): IResourceWithWaitSupport
dependency IResource
waitBehavior WaitBehavior
IResourceWithWaitSupport