Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

waitForCompletion

Method
📦 Aspire.Hosting v13.5.3
interface ContainerResource {
// ... omitted for brevity
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport;
}

Signature

methodwaitForCompletionbuilder
Waits for the dependency resource to enter the Exited or Finished state before starting the resource.
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport
dependencyIResource
exitCodenumberoptional= 0
IResourceWithWaitSupport

Applies to

This method applies to the following types: