Bagikan melalui


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