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

AzureAppConfigurationRefreshOptions.SetRefreshInterval(TimeSpan) Method

Definition

Sets the minimum time interval between consecutive refresh operations for the registered key-values. Default value is 30 seconds. Must be greater than 1 second. Refresh operations triggered using IConfigurationRefresher will not make any server requests unless the refresh interval has elapsed since the key was last refreshed.

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

Parameters

refreshInterval
TimeSpan

Minimum time that must elapse between each refresh for a specific key.

Returns

Applies to