IConfigurationEventHandler<T>.BeforeRetrieveAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.