Share via


IConfigurationEventHandler<T>.BeforeRetrieveAsync Method

Definition

Called before retrieving configuration from the metadata endpoint.

public System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.Configuration.ConfigurationEventHandlerResult<T>> BeforeRetrieveAsync(string metadataAddress, System.Threading.CancellationToken cancellationToken = default);
abstract member BeforeRetrieveAsync : string * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.IdentityModel.Protocols.Configuration.ConfigurationEventHandlerResult<'T>>
Public Function BeforeRetrieveAsync (metadataAddress As String, Optional cancellationToken As CancellationToken = Nothing) As Task(Of ConfigurationEventHandlerResult(Of T))

Parameters

metadataAddress
String

The metadata endpoint address.

cancellationToken
CancellationToken

A cancellation token to observe while waiting for the task to complete.

Returns

A ConfigurationEventHandlerResult<T> if valid and available, or NoResult to proceed with normal retrieval.

Applies to