Skip to content
DocsTry Aspire
DocsTry

waitForResourceStates

Method
📦 Aspire.Hosting v13.4.0
interface ResourceNotificationService {
// ... omitted for brevity
waitForResourceStates(
resourceName: string,
targetStates: string[]): string;
}

Signature

methodwaitForResourceStates
Waits for a resource to reach one of the specified states.
waitForResourceStates(
resourceName: string,
targetStates: string[]): string
resourceNamestring
targetStatesstring[]
string

Applies to

This method applies to the following types: