Condividi tramite


IDistributedApplicationLifecycleHook.AfterEndpointsAllocatedAsync Method

Definition

Executes after the orchestrator allocates endpoints for resources in the application model.

public virtual System.Threading.Tasks.Task AfterEndpointsAllocatedAsync (Aspire.Hosting.ApplicationModel.DistributedApplicationModel appModel, System.Threading.CancellationToken cancellationToken = default);
abstract member AfterEndpointsAllocatedAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.AfterEndpointsAllocatedAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Overridable Function AfterEndpointsAllocatedAsync (appModel As DistributedApplicationModel, Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

appModel
DistributedApplicationModel

The distributed application model.

cancellationToken
CancellationToken

A CancellationToken.

Returns

A Task representing the asynchronous operation.

Applies to