Watch Aspire live streamsDocsTry Aspire
Watch Aspire live streamsDocsTry

ResourceNotificationService.waitForResourceState

Method
📦 Aspire.Hosting v13.5.3
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

Defined on

This method is defined on the following type: