File tree Expand file tree Collapse file tree 1 file changed +8
-8
lines changed
src/Microsoft.IdentityModel.Protocols/Configuration Expand file tree Collapse file tree 1 file changed +8
-8
lines changed Original file line number Diff line number Diff line change @@ -179,15 +179,15 @@ public virtual async Task<T> GetConfigurationAsync(CancellationToken cancel)
179179#endif
180180 DateTimeOffset . UtcNow ;
181181
182- // Add a random amount between 0 and 5% of AutomaticRefreshInterval jitter to avoid spike traffic to IdentityProvider.
183- _syncAfter = DateTimeUtil . Add ( utcNow . UtcDateTime , AutomaticRefreshInterval +
184- TimeSpan . FromSeconds ( new Random ( ) . Next ( ( int ) AutomaticRefreshInterval . TotalSeconds / 20 ) ) ) ;
185182
186- _currentConfiguration = configuration ;
187- }
188- catch ( Exception ex )
189- {
190- fetchMetadataFailure = ex ;
183+ // Add a random amount between 0 and 5% of AutomaticRefreshInterval jitter to avoid spike traffic to IdentityProvider.
184+ _syncAfter = DateTimeUtil . Add ( utcNow . UtcDateTime , AutomaticRefreshInterval +
185+ TimeSpan . FromSeconds ( new Random ( ) . Next ( ( int ) AutomaticRefreshInterval . TotalSeconds / 20 ) ) ) ;
186+ _currentConfiguration = configuration ;
187+ }
188+ catch ( Exception ex )
189+ {
190+ fetchMetadataFailure = ex ;
191191
192192 DateTime utcNow =
193193#if SUPPORTS_TIME_PROVIDER
You can’t perform that action at this time.
0 commit comments