IConfigurationEventHandlerContextAware<T>.BeforeRetrieveAsync Methode
Definition
Wichtig
Einige Informationen beziehen sich auf Vorabversionen, die vor dem Release ggf. grundlegend überarbeitet werden. Microsoft übernimmt hinsichtlich der hier bereitgestellten Informationen keine Gewährleistungen, seien sie ausdrücklich oder konkludent.
Wird aufgerufen, bevor die Konfiguration vom Metadatenendpunkt abgerufen wird.
public System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.Configuration.ConfigurationEventHandlerResult<T>> BeforeRetrieveAsync(string metadataAddress, Microsoft.IdentityModel.Protocols.Configuration.ConfigurationRetrievalContext context, System.Threading.CancellationToken cancellationToken = default);
abstract member BeforeRetrieveAsync : string * Microsoft.IdentityModel.Protocols.Configuration.ConfigurationRetrievalContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.Configuration.ConfigurationEventHandlerResult<'T>>
Public Function BeforeRetrieveAsync (metadataAddress As String, context As ConfigurationRetrievalContext, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConfigurationEventHandlerResult(Of T))
Parameter
- metadataAddress
- String
Die Metadatenendpunktadresse.
- context
- ConfigurationRetrievalContext
Der Kontext für den Konfigurationsabrufvorgang, der zusätzliche Informationen und Kontrolle bereitstellt.
- cancellationToken
- CancellationToken
Ein Abbruchtoken, das beim Warten auf den Abschluss der Aufgabe beobachtet werden soll.
Gibt zurück
A ConfigurationEventHandlerResult<T> if valid and available, or NoResult to proceed with normal retrieval.