<PackageReference Include="Microsoft.IdentityModel.Protocols" Version="8.19.1" />

Microsoft.IdentityModel.Protocols.Configuration.IConfigurationEventHandlerContextAware<T>

Defines event handlers for configuration retrieval and update operations.
Task AfterUpdateAsync(string metadataAddress, T configuration, ConfigurationRetrievalContext context, CancellationToken cancellationToken = default)

Called in a fire-and-forget manner after a configuration has been successfully retrieved.

Task<ConfigurationEventHandlerResult<T>> BeforeRetrieveAsync(string metadataAddress, ConfigurationRetrievalContext context, CancellationToken cancellationToken = default)

Called before retrieving configuration from the metadata endpoint.