Skip to content

Instantly share code, notes, and snippets.

@finesse-fingers
Created April 26, 2020 04:57
Show Gist options
  • Save finesse-fingers/dd2e29619cb73ff49d8f555ad968bc7a to your computer and use it in GitHub Desktop.
Save finesse-fingers/dd2e29619cb73ff49d8f555ad968bc7a to your computer and use it in GitHub Desktop.
Azure keyvaul client with reload interval
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