diff --git a/tests/ZiggyCreatures.FusionCache.Simulator/Program.cs b/tests/ZiggyCreatures.FusionCache.Simulator/Program.cs index 0aba1807..7ddc964a 100644 --- a/tests/ZiggyCreatures.FusionCache.Simulator/Program.cs +++ b/tests/ZiggyCreatures.FusionCache.Simulator/Program.cs @@ -61,6 +61,11 @@ internal static class SimulatorOptions public static readonly string BackplaneRedisConnection = RedisConnection; public static readonly TimeSpan? ChaosBackplaneSyntheticDelay = null; //TimeSpan.FromMilliseconds(500); + // AUTO-RECOVERY + public static readonly bool EnableAutoRecovery = true; + public static readonly TimeSpan? AutoRecoveryDelay = null; + public static readonly TimeSpan AutoRecoveryDefaultDelay = new FusionCacheOptions().AutoRecoveryDelay; + // OTHERS public static readonly TimeSpan RefreshDelay = TimeSpan.FromMilliseconds(500); public static readonly TimeSpan DataChangesMinDelay = TimeSpan.FromSeconds(1); @@ -283,7 +288,7 @@ private static void SetupSerilogLogger(IServiceCollection services, LogEventLeve DateTimeOffset? physicalExpiration = null; try { - physicalExpiration = (DateTimeOffset?)entry.GetType().GetProperty("LogicalExpiration")?.GetValue(entry); + physicalExpiration = (DateTimeOffset?)entry.GetType().GetProperty("PhysicalExpiration")?.GetValue(entry); } catch (Exception exc) { @@ -294,11 +299,11 @@ private static void SetupSerilogLogger(IServiceCollection services, LogEventLeve if (logicalExpiration is not null && physicalExpiration is not null) return logicalExpiration.Value < physicalExpiration.Value ? logicalExpiration : physicalExpiration; - // USE THE PHYSICAL + // USE THE LOGICAL if (logicalExpiration is not null) return logicalExpiration; - // USE THE LOGICAL + // USE THE PHYSICAL if (physicalExpiration is not null) return physicalExpiration; @@ -333,8 +338,11 @@ private static void SetupClusters(IServiceProvider serviceProvider, ILogger