WebApplication.StopAsync(CancellationToken) Method

Definition

Shuts down the application.

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

Parameters

cancellationToken
CancellationToken

Returns

A Task that represents the shutdown of the WebApplication. Successful completion indicates that all the HTTP server has stopped.

Implements

Applies to