SystemdLifetime.StopAsync(CancellationToken) Metodo

Definizione

Arresta e chiude in modo asincrono l'host. Questo metodo viene chiamato da StopAsync(CancellationToken).

public:
 virtual System::Threading::Tasks::Task ^ StopAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task StopAsync (System.Threading.CancellationToken cancellationToken);
abstract member StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StopAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StopAsync (cancellationToken As CancellationToken) As Task

Parametri

cancellationToken
CancellationToken

Token di annullamento che indica quando l'arresto non deve più essere graziato.

Restituisce

Attività che rappresenta l'operazione di arresto asincrona.

Implementazioni

Eccezioni

Il token di annullamento è stato annullato. Questa eccezione viene archiviata nell'attività restituita.

Si applica a