From e256eb1601b759c773374f4ffb0ae89739be4eda Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Wed, 3 Sep 2014 01:22:55 +0700 Subject: [PATCH] Changed CacheItemRemoved event in RuntimeCacheProvider to be protected virtual to be consistent with the AspNetCacheProvider. --- .../MvcSiteMapProvider/Caching/RuntimeCacheProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/RuntimeCacheProvider.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/RuntimeCacheProvider.cs index bfc119fb..9debf356 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/RuntimeCacheProvider.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/RuntimeCacheProvider.cs @@ -94,7 +94,7 @@ private bool IsTimespanSet(TimeSpan timeSpan) return (!timeSpan.Equals(TimeSpan.MinValue)); } - private void CacheItemRemoved(CacheEntryRemovedArguments arguments) + protected virtual void CacheItemRemoved(CacheEntryRemovedArguments arguments) { var item = arguments.CacheItem; var args = new MicroCacheItemRemovedEventArgs(item.Key, ((LazyLock)item.Value).Get(null));