Skip to content
Docs Try Aspire

ResourceNotificationService.waitForResourceState

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

Signature

method waitForResourceState
Waits for a resource to reach a specified state
waitForResourceState(
resourceName: string,
targetState?: string): void
resourceName string
targetState string optional

Defined on

This method is defined on the following type: