Aspirerelease/17.0
Watch Aspire live streamsDocsTry Aspire

WaitForResourceStates

Method
📦 Aspire.Hosting v17.0.0
func (ResourceNotificationService) WaitForResourceStates(
resourceName string,
targetStates []string,
) (string, error)

Signature

methodWaitForResourceStates
Waits for a resource to reach one of the specified states.
WaitForResourceStates(
resourceName string,
targetStates []string,
) (string, error)
resourceNamestring
targetStates[]string
(string, error)

Returns (string, error).

Applies to

This method applies to the following types: