Skip to content

Commit 59d847a

Browse files
add minimum requirement for MinBackOffDuration
1 parent 651539e commit 59d847a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/Microsoft.Extensions.Configuration.AzureAppConfiguration/AzureAppConfigurationProvider.cs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,13 @@ public AzureAppConfigurationProvider(IConfigurationClientManager configClientMan
137137
MinRefreshInterval = RefreshConstants.DefaultRefreshInterval;
138138
}
139139

140+
if (options.MinBackoffDuration < TimeSpan.FromSeconds(1))
141+
{
142+
throw new ArgumentException(
143+
$"{nameof(options.MinBackoffDuration)} must be at least 1 second",
144+
nameof(options));
145+
}
146+
140147
// Enable request tracing if not opt-out
141148
string requestTracingDisabled = null;
142149
try

0 commit comments

Comments
 (0)