IConfigurationEventHandlerContextAware<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, 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
The metadata endpoint address.
- context
- ConfigurationRetrievalContext
The context for the configuration retrieval operation, providing additional information and control.
- 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.