Taal

IHostedLifecycleService.StoppingAsync(CancellationToken) Methode

Definitie

Geactiveerd vóór StopAsync(CancellationToken).

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

Parameters

cancellationToken
CancellationToken

Geeft aan dat het startproces is afgebroken.

Retouren

Een Task die de asynchrone bewerking vertegenwoordigt.

Uitzonderingen

Het annuleringstoken is geannuleerd. Deze uitzondering wordt opgeslagen in de geretourneerde taak.

Van toepassing op