共用方式為


DistributedApplicationFactory.StartAsync(CancellationToken) Method

Definition

Starts the application.

public System.Threading.Tasks.Task StartAsync (System.Threading.CancellationToken cancellationToken = default);
member this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parameters

cancellationToken
CancellationToken

A token used to signal cancellation.

Returns

A Task representing the completion of the operation.

Applies to