IDistributedApplicationLifecycleHook.AfterResourcesCreatedAsync Method

Definition

Executes after the orchestrator has created the resources in the application model.

C#
public virtual System.Threading.Tasks.Task AfterResourcesCreatedAsync(Aspire.Hosting.ApplicationModel.DistributedApplicationModel appModel, System.Threading.CancellationToken cancellationToken = default);

Parameters

appModel
DistributedApplicationModel

The DistributedApplicationModel for the distributed application.

cancellationToken
CancellationToken

A CancellationToken.

Returns

A Task representing the asynchronous operation.

Remarks

There is no guarantee that the resources have fully started or are in a working state when this method is called.

Applies to

Produkt Verze
.NET Aspire 8.0.0, 9.0.0, 9.1.0