语言

你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。

CredentialResolver.TryResolveCore Method

Definition

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.

Applies to