Dela via


WebApplication.StartAsync(CancellationToken) Method

Definition

Start the application.

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

Parameters

cancellationToken
CancellationToken

Returns

A Task that represents the startup of the WebApplication. Successful completion indicates the HTTP server is ready to accept new requests.

Implements

Applies to