IHostedService.StartAsync(CancellationToken) Méthode
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Déclenché quand l’hôte d’application est prêt à démarrer le service.
public:
System::Threading::Tasks::Task ^ StartAsync(System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken);
abstract member StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (cancellationToken As CancellationToken) As Task
- cancellationToken
- CancellationToken
Indique que le processus de démarrage a été abandonné.
Task qui représente l’opération de démarrage asynchrone.
Le jeton d’annulation a été annulé. Cette exception est stockée dans la tâche retournée.
Produit | Versions |
---|---|
.NET | 8 (package-provided), 9 (package-provided), 10 (package-provided) |
.NET Standard | 2.0 (package-provided), 2.1 (package-provided) |
Commentaires sur .NET
.NET est un projet open source. Sélectionnez un lien pour fournir des commentaires :