다음을 통해 공유


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