Skip to content
Docs Try Aspire

waitForResourceState

Function
📦 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

Applies to

This function is an extension method on the following types: