Created
April 26, 2020 04:57
-
-
Save finesse-fingers/dd2e29619cb73ff49d8f555ad968bc7a to your computer and use it in GitHub Desktop.
Azure keyvaul client with reload interval
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
configurationBuilder.AddAzureKeyVault(new AzureKeyVaultConfigurationOptions | |
{ | |
Vault = configuration["KeyVaultUrl"], | |
ReloadInterval = TimeSpan.FromMinutes(10), | |
Client = new KeyVaultClient(new KeyVaultClient.AuthenticationCallback( | |
new AzureServiceTokenProvider().KeyVaultTokenCallback)) | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment