Skip to content

Commit

Permalink
set default LastKnownGood cache instance.
Browse files Browse the repository at this point in the history
  • Loading branch information
Brent Schmaltz authored and brentschmaltz committed Apr 3, 2023
1 parent 825d07e commit 42d6dbd
Showing 1 changed file with 6 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,12 @@ public abstract class BaseConfigurationManager
private BaseConfiguration _lastKnownGoodConfiguration;
private DateTime? _lastKnownGoodConfigFirstUse = null;

internal EventBasedLRUCache<BaseConfiguration, DateTime> _lastKnownGoodConfigurationCache;
internal EventBasedLRUCache<BaseConfiguration, DateTime> _lastKnownGoodConfigurationCache =
new EventBasedLRUCache<BaseConfiguration, DateTime>(
10,
TaskCreationOptions.None,
new BaseConfigurationComparer(),
true);

/// <summary>
/// Gets or sets the <see cref="TimeSpan"/> that controls how often an automatic metadata refresh should occur.
Expand Down

0 comments on commit 42d6dbd

Please sign in to comment.