Beispiel #1
0
 private void DefaultRemovalHook(object sender, HookedSimpleCacheEventArgs <TKey> e)
 {
     Remove(e.Target);
     if (HookedSimpleCacheState.NeedsCleanup(typeof(THookTarget)))
     {
         HookedSimpleCacheState.Cleanup(typeof(THookTarget));
     }
 }
Beispiel #2
0
 private void DefaultRemovalHook(HookedSimpleCache <TKey, TValue, THookTarget> sender, HookedSimpleCacheEventArgs <TKey> e)
 {
     Assert.IsNotNull(this);
     sender.Remove(e.Target);
     if (HookedSimpleCacheState.NeedsCleanup(typeof(THookTarget)))
     {
         HookedSimpleCacheState.Cleanup(typeof(THookTarget));
     }
 }