Skip to content
DocsTry Aspire
DocsTry

IResourceWithWaitSupport

Interface
📦 Aspire.Hosting v13.4.0
interface IResourceWithWaitSupport {
waitFor(
dependency: IResource,
waitBehavior?: WaitBehavior): IResourceWithWaitSupport;
waitForCompletion(
dependency: IResource,
exitCode?: number): IResourceWithWaitSupport;
waitForStart(
dependency: IResource,
waitBehavior?: WaitBehavior): IResourceWithWaitSupport;
}

Methods

methodwaitForbuilder
Waits for another resource to be ready
waitFor(
dependency: IResource,
waitBehavior?: WaitBehavior): IResourceWithWaitSupport
dependencyIResource
waitBehaviorWaitBehavioroptional
IResourceWithWaitSupport
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
methodwaitForStartbuilder
Waits for another resource to start
waitForStart(
dependency: IResource,
waitBehavior?: WaitBehavior): IResourceWithWaitSupport
dependencyIResource
waitBehaviorWaitBehavioroptional
IResourceWithWaitSupport