WebApplication.StopAsync(CancellationToken) Methode

Definition

Beendet die Anwendung.

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

Parameter

cancellationToken
CancellationToken

Gibt zurück

Ein Task , der das Herunterfahren von WebApplicationdarstellt. Der erfolgreiche Abschluss gibt an, dass der gesamte HTTP-Server beendet wurde.

Implementiert

Gilt für: