Skip to content
Docs Try Aspire
Docs Try

waitForResourceStates

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

Signature

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

Applies to

This method applies to the following types: