CredentialResolver.TryResolveCore 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.
Override to implement chain-aware resolution. The default implementation
ignores resolveChild and forwards to
TryResolve(IConfigurationSection, AuthenticationTokenProvider).
protected virtual bool TryResolveCore(Microsoft.Extensions.Configuration.IConfigurationSection credentialSection, Func<Microsoft.Extensions.Configuration.IConfigurationSection,System.ClientModel.AuthenticationTokenProvider?> resolveChild, out System.ClientModel.AuthenticationTokenProvider? provider);
abstract member TryResolveCore : Microsoft.Extensions.Configuration.IConfigurationSection * Func<Microsoft.Extensions.Configuration.IConfigurationSection, System.ClientModel.AuthenticationTokenProvider> * AuthenticationTokenProvider -> bool
override this.TryResolveCore : Microsoft.Extensions.Configuration.IConfigurationSection * Func<Microsoft.Extensions.Configuration.IConfigurationSection, System.ClientModel.AuthenticationTokenProvider> * AuthenticationTokenProvider -> bool
Protected Overridable Function TryResolveCore (credentialSection As IConfigurationSection, resolveChild As Func(Of IConfigurationSection, AuthenticationTokenProvider), ByRef provider As AuthenticationTokenProvider) As Boolean
Parameters
- credentialSection
- IConfigurationSection
The credential configuration section.
- resolveChild
- Func<IConfigurationSection,AuthenticationTokenProvider>
The chain callback (already guarded by the public TryResolve(IConfigurationSection, Func<IConfigurationSection,AuthenticationTokenProvider>, AuthenticationTokenProvider) wrapper). Invoke synchronously to recurse into the chain; do not capture for later use.
- provider
- AuthenticationTokenProvider
When this method returns true,
contains the constructed provider; otherwise null.
Returns
true if this resolver handled the section.