waitForCompletion

Method
📦 Aspire.Hosting v17.0.0
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
dependencyIResourceThe resource builder for the dependency resource.
exitCodenumberoptional= 0The exit code which is interpreted as successful.
IResourceWithWaitSupport

Applies to

This method applies to the following types: