Skip to content

Commit f7aeb05

Browse files
committed
Start TaskEventQ on startup, no need to take it up and down.
Do not add items if cache is full or compacting.
1 parent 2995aab commit f7aeb05

File tree

5 files changed

+102
-174
lines changed

5 files changed

+102
-174
lines changed

src/Microsoft.IdentityModel.Tokens/BaseConfigurationManager.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,7 @@ public BaseConfiguration LastKnownGoodConfiguration
119119
_lastKnownGoodConfigFirstUse = DateTime.UtcNow;
120120

121121
// LRU cache will remove the expired configuration
122-
_lastKnownGoodConfigurationCache.SetValue(_lastKnownGoodConfiguration, DateTime.UtcNow + LastKnownGoodLifetime, DateTime.UtcNow + LastKnownGoodLifetime);
122+
_lastKnownGoodConfigurationCache.TrySetValue(_lastKnownGoodConfiguration, DateTime.UtcNow + LastKnownGoodLifetime, DateTime.UtcNow + LastKnownGoodLifetime);
123123
}
124124
}
125125

0 commit comments

Comments
 (0)