ResourceNotificationService.WaitForDependenciesAsync Method

Definition

Waits for all dependencies of the resource to be ready.

public System.Threading.Tasks.Task WaitForDependenciesAsync (Aspire.Hosting.ApplicationModel.IResource resource, System.Threading.CancellationToken cancellationToken);
member this.WaitForDependenciesAsync : Aspire.Hosting.ApplicationModel.IResource * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function WaitForDependenciesAsync (resource As IResource, cancellationToken As CancellationToken) As Task

Parameters

resource
IResource

The resource with dependencies to wait for.

cancellationToken
CancellationToken

The cancellation token.

Returns

A task.

Exceptions

Applies to