IWebHost.StartAsync(CancellationToken) Method

Definition

Starts listening on the configured addresses.

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

Parameters

cancellationToken
CancellationToken

Used to abort program start.

Returns

Task

A Task that completes when the IWebHost starts.

Applies to