你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

AzureAppConfigurationKeyVaultOptions.SetSecretRefreshInterval Method

Definition

Overloads

Name Description
SetSecretRefreshInterval(TimeSpan)

Sets the refresh interval for periodically reloading all those secrets which do not have individual refresh intervals. Any refresh operation triggered using IConfigurationRefresher will not update the value for a Key Vault secret until the cached value for that secret has expired.

SetSecretRefreshInterval(String, TimeSpan)

Sets the refresh interval for periodically reloading a secret from Key Vault. Any refresh operation triggered using IConfigurationRefresher will not update the value for a Key Vault secret until the cached value for that secret has expired.

SetSecretRefreshInterval(TimeSpan)

Sets the refresh interval for periodically reloading all those secrets which do not have individual refresh intervals. Any refresh operation triggered using IConfigurationRefresher will not update the value for a Key Vault secret until the cached value for that secret has expired.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions SetSecretRefreshInterval(TimeSpan refreshInterval);
member this.SetSecretRefreshInterval : TimeSpan -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions
Public Function SetSecretRefreshInterval (refreshInterval As TimeSpan) As AzureAppConfigurationKeyVaultOptions

Parameters

refreshInterval
TimeSpan

Minimum time that must elapse before the secrets are reloaded from Key Vault.

Returns

Applies to

SetSecretRefreshInterval(String, TimeSpan)

Sets the refresh interval for periodically reloading a secret from Key Vault. Any refresh operation triggered using IConfigurationRefresher will not update the value for a Key Vault secret until the cached value for that secret has expired.

public Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions SetSecretRefreshInterval(string secretReferenceKey, TimeSpan refreshInterval);
member this.SetSecretRefreshInterval : string * TimeSpan -> Microsoft.Extensions.Configuration.AzureAppConfiguration.AzureAppConfigurationKeyVaultOptions
Public Function SetSecretRefreshInterval (secretReferenceKey As String, refreshInterval As TimeSpan) As AzureAppConfigurationKeyVaultOptions

Parameters

secretReferenceKey
String

Key of the Key Vault reference in Azure App Configuration.

refreshInterval
TimeSpan

Minimum time that must elapse before the secret is reloaded from Key Vault.

Returns

Applies to