共用方式為


IDistributedApplicationPublisher.PublishAsync Method

Definition

Publishes the specified distributed application model.

public System.Threading.Tasks.Task PublishAsync (Aspire.Hosting.ApplicationModel.DistributedApplicationModel model, System.Threading.CancellationToken cancellationToken);
abstract member PublishAsync : Aspire.Hosting.ApplicationModel.DistributedApplicationModel * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function PublishAsync (model As DistributedApplicationModel, cancellationToken As CancellationToken) As Task

Parameters

model
DistributedApplicationModel

The distributed application model to publish.

cancellationToken
CancellationToken

A CancellationToken.

Returns

A task that represents the asynchronous operation.

Applies to