Skip to content
DocsTry Aspire
DocsTry

waitFor

Method
📦 Aspire.Hosting v13.4.0
interface ContainerResource {
// ... omitted for brevity
waitFor(
dependency: IResource,
waitBehavior?: WaitBehavior): IResourceWithWaitSupport;
}

Signature

methodwaitForbuilder
Waits for another resource to be ready
waitFor(
dependency: IResource,
waitBehavior?: WaitBehavior): IResourceWithWaitSupport
dependencyIResource
waitBehaviorWaitBehavioroptional
IResourceWithWaitSupport

Applies to

This method applies to the following types: