System.ClientModel.Primitives.CredentialResolver
Plug-in point for resolving an AuthenticationTokenProvider from
an IConfigurationSection that describes a credential. Credential
libraries derive from this class and ship a typed
Add{Brand}CredentialResolver() registration extension.
protected CredentialResolver()
public abstract bool TryResolve(IConfigurationSection credentialSection, out AuthenticationTokenProvider provider)
Attempts to construct an AuthenticationTokenProvider for
the supplied credential configuration section.
public virtual bool TryResolve(IConfigurationSection credentialSection, Func<IConfigurationSection, AuthenticationTokenProvider> resolveChild, out AuthenticationTokenProvider provider)
Attempts to construct an AuthenticationTokenProvider for
the supplied credential configuration section, with access to a callback
that recursively resolves child sections through the same active resolver
chain.