From e0dfa5e61b368a2cac791ae50a75ae57b0b68d87 Mon Sep 17 00:00:00 2001 From: Shad Storhaug Date: Wed, 3 Sep 2014 01:23:33 +0700 Subject: [PATCH] Added reminder to refactor the event handler of the ICacheProvider interface in version 5. --- .../MvcSiteMapProvider/Caching/ICacheProvider.cs | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs index 466c5a6b..a18a2e66 100644 --- a/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs +++ b/src/MvcSiteMapProvider/MvcSiteMapProvider/Caching/ICacheProvider.cs @@ -14,6 +14,10 @@ public interface ICacheProvider bool TryGetValue(string key, out LazyLock value); void Add(string key, LazyLock item, ICacheDetails cacheDetails); void Remove(string key); + + // NOTE: In version 5, this should be changed to a ProviderItemRemovedEventArgs to pass the LazyLock + // instead of T back to the MicroCache to make it consistently deal with a LazyLock and the + // MicroCache consistently deal with a T. event EventHandler> ItemRemoved; } }