WebApplication.StopAsync(CancellationToken) Metodo

Definizione

Arresta l'applicazione.

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

Parametri

cancellationToken
CancellationToken

Restituisce

Oggetto Task che rappresenta l'arresto dell'oggetto WebApplication. Il completamento ha esito positivo indica che tutto il server HTTP è stato arrestato.

Implementazioni

Si applica a