Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

waitFor

Method
📦 Aspire.Hosting v13.5.3
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: