CredentialResolver.TryResolve Method

Definition

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.

Applies to