FakeHost.StartAsync(CancellationToken) Metodo

Definizione

Avvia il programma.

public System.Threading.Tasks.Task StartAsync(System.Threading.CancellationToken cancellationToken = default);
abstract member StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
override this.StartAsync : System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function StartAsync (Optional cancellationToken As CancellationToken = Nothing) As Task

Parametri

cancellationToken
CancellationToken

Usato per interrompere l'avvio del programma.

Valori restituiti

Oggetto Task che verrà completato all'avvio.IHost

Implementazioni

Eccezioni

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

Commenti

Se non viene specificato alcun token di annullamento, ne viene usato uno nuovo con StartUpTimeout .

Si applica a