CredentialResolver.TryResolve 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.
Attempts to construct an AuthenticationTokenProvider for the supplied credential configuration section.
public abstract bool TryResolve(Microsoft.Extensions.Configuration.IConfigurationSection credentialSection, out System.ClientModel.AuthenticationTokenProvider? provider);
abstract member TryResolve : Microsoft.Extensions.Configuration.IConfigurationSection * AuthenticationTokenProvider -> bool
Public MustOverride Function TryResolve (credentialSection As IConfigurationSection, ByRef provider As AuthenticationTokenProvider) As Boolean
Parameters
- credentialSection
- IConfigurationSection
The credential configuration section (post-overlay if any overrides were applied by the caller).
- provider
- AuthenticationTokenProvider
When this method returns true,
contains the constructed provider; otherwise null.
Returns
true if this resolver recognized and handled
the section; false to defer to the next resolver in the
chain.