ConsoleLifetime.WaitForStartAsync(CancellationToken) Metodo

Definizione

Registra i gestori di avvio dell'applicazione, arresto e arresto dell'applicazione per questa applicazione.

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

Parametri

cancellationToken
CancellationToken

Token di annullamento da monitorare per le richieste di annullamento.

Valori restituiti

Oggetto Task che rappresenta l'operazione di registrazione asincrona.

Implementazioni

Eccezioni

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

Commenti

Questa API supporta l'infrastruttura .NET e non deve essere usata direttamente dal codice.

Si applica a