Skip to content
Docs Try Aspire

waitForResourceStates

Function
📦 Aspire.Hosting v13.2.0-preview.1.26159.1
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 function is an extension method on the following types: