KestrunHost.StopAsync method

Stops the Kestrun web application asynchronously.

public Task StopAsync(CancellationToken cancellationToken = default)
parameter description
cancellationToken A cancellation token to observe while waiting for the task to complete.

Return Value

A task that represents the asynchronous stop operation.

See Also