Skip to content
DocsTry Aspire
DocsTry

waitForResourceState

Method
📦 Aspire.Hosting v13.4.0
interface ResourceNotificationService {
// ... omitted for brevity
waitForResourceState(
resourceName: string,
targetState?: string): void;
}

Signature

methodwaitForResourceState
Waits for a resource to reach a specified state.
waitForResourceState(
resourceName: string,
targetState?: string): void
resourceNamestring
targetStatestringoptional

Applies to

This method applies to the following types: