IConfigurationEventHandlerContextAware<T>.BeforeRetrieveAsync Methode
Definitie
Belangrijk
Bepaalde informatie heeft betrekking op een voorlopige productversie die aanzienlijk kan worden gewijzigd voordat deze wordt uitgebracht. Microsoft biedt geen enkele expliciete of impliciete garanties met betrekking tot de informatie die hier wordt verstrekt.
Wordt aangeroepen voordat de configuratie wordt opgehaald van het eindpunt voor metagegevens.
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))
Parameters
- metadataAddress
- String
Het eindpuntadres van de metagegevens.
- context
- ConfigurationRetrievalContext
De context voor de bewerking voor het ophalen van de configuratie, met aanvullende informatie en controle.
- cancellationToken
- CancellationToken
Een annuleringstoken dat u kunt observeren terwijl wordt gewacht totdat de taak is voltooid.
Retouren
Een ConfigurationEventHandlerResult<T> indien geldig en beschikbaar, of NoResult om door te gaan met normaal ophalen.