From f869ccd1f157a95ff2aad13886ec444f935b05e2 Mon Sep 17 00:00:00 2001 From: AMER JUSUPOVIC Date: Tue, 1 Oct 2024 09:38:43 -0700 Subject: [PATCH] move retries number to const int --- .../AzureAppConfigurationKeyVaultOptions.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationKeyVaultOptions.cs b/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationKeyVaultOptions.cs index 520e3af0..24bc61a7 100644 --- a/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationKeyVaultOptions.cs +++ b/src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationKeyVaultOptions.cs @@ -14,11 +14,13 @@ namespace Microsoft.Extensions.Configuration.AzureAppConfiguration /// public class AzureAppConfigurationKeyVaultOptions { + private const int KeyVaultMaxRetries = 6; + internal TokenCredential Credential; internal SecretClientOptions ClientOptions = new SecretClientOptions { Retry = { - MaxRetries = 6 + MaxRetries = KeyVaultMaxRetries } }; internal List SecretClients = new List();