IServer.StopAsync(CancellationToken) IServer.StopAsync(CancellationToken) Method

Definition

Stop processing requests and shut down the server, gracefully if possible.

public System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task

Parameters

cancellationToken
CancellationToken CancellationToken

Indicates if the graceful shutdown should be aborted.

Returns

Applies to