Class AzureAppConfigurationKeyVaultOptions
- Assembly
- Microsoft.Extensions.Configuration.AzureAppConfiguration.dll
Options used to configure the client used to fetch key vault references in an Azure App Configuration provider.
public class AzureAppConfigurationKeyVaultOptions
- Inheritance
-
AzureAppConfigurationKeyVaultOptions
- Inherited Members
Constructors
AzureAppConfigurationKeyVaultOptions()
public AzureAppConfigurationKeyVaultOptions()
Methods
Register(SecretClient)
Registers the specified Azure.Security.KeyVault.Secrets.SecretClient instance to use to resolve key vault references for secrets from associated key vault.
public AzureAppConfigurationKeyVaultOptions Register(SecretClient secretClient)
Parameters
secretClient
SecretClientSecret client instance.
Returns
SetCredential(TokenCredential)
Sets the credentials used to authenticate to key vaults that have no registered Azure.Security.KeyVault.Secrets.SecretClient.
public AzureAppConfigurationKeyVaultOptions SetCredential(TokenCredential credential)
Parameters
credential
TokenCredentialDefault token credentials.
Returns
SetSecretResolver(Func<Uri, ValueTask<string>>)
Sets the callback used to resolve key vault references that have no registered Azure.Security.KeyVault.Secrets.SecretClient.
public AzureAppConfigurationKeyVaultOptions SetSecretResolver(Func<Uri, ValueTask<string>> secretResolver)
Parameters
secretResolver
Func<Uri, ValueTask<string>>A callback that maps the System.Uri of the key vault secret to its value.