From 7f316b28f5b7910d432b96f8742962ec0005b1ad Mon Sep 17 00:00:00 2001 From: Masoud Karimi Date: Fri, 6 Sep 2024 16:40:40 +0330 Subject: [PATCH] fix: adds ThrowIfDistributedCacheError, FlushLocalCacheOnBusReconnection to hybrid cache binding --- .../Configurations/EasyCachingOptionsExtensions.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/EasyCaching.HybridCache/Configurations/EasyCachingOptionsExtensions.cs b/src/EasyCaching.HybridCache/Configurations/EasyCachingOptionsExtensions.cs index 650805e2..41e5646a 100644 --- a/src/EasyCaching.HybridCache/Configurations/EasyCachingOptionsExtensions.cs +++ b/src/EasyCaching.HybridCache/Configurations/EasyCachingOptionsExtensions.cs @@ -54,6 +54,8 @@ void configure(HybridCachingOptions x) x.DistributedCacheProviderName = hybridOptions.DistributedCacheProviderName; x.LocalCacheProviderName = hybridOptions.LocalCacheProviderName; x.TopicName = hybridOptions.TopicName; + x.ThrowIfDistributedCacheError = hybridOptions.ThrowIfDistributedCacheError; + x.FlushLocalCacheOnBusReconnection = hybridOptions.FlushLocalCacheOnBusReconnection; } return options.UseHybrid(configure, name); }