Sprache

IAsyncStartupValidator.ValidateAsync(CancellationToken) Methode

Definition

Ruft alle registrierten IAsyncValidateOptions<TOptions> Validatoren auf.

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

Parameter

cancellationToken
CancellationToken

Das Token, das auf Abbruchanforderungen überwacht werden soll.

Gibt zurück

Ausnahmen

Ein einzelner Validator gibt beim Überprüfen einen Fehler ValidateOptionsResult zurück.

Mehrere Optionsinstanzen schlagen eine asynchrone Überprüfung fehl und erzeugen jeweils eine OptionsValidationException.

Gilt für: