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

AzureAppConfigurationKeyVaultOptions.SetSecretResolver Method

Definition

Sets the callback used to resolve key vault references that have no registered SecretClient.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions SetSecretResolver(Func<Uri,System.Threading.Tasks.ValueTask<string>> secretResolver);
member this.SetSecretResolver : Func<Uri, System.Threading.Tasks.ValueTask<string>> -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions
Public Function SetSecretResolver (secretResolver As Func(Of Uri, ValueTask(Of String))) As AzureAppConfigurationKeyVaultOptions

Parameters

secretResolver
Func<Uri,ValueTask<String>>

A callback that maps the Uri of the key vault secret to its value.

Returns

Applies to