示例#1
0
        protected void OnItemEvicted(ItemEvictedEventArgs <T> e)
        {
            EventHandler <ItemEvictedEventArgs <T> > handler = ItemEvicted;

            if (handler != null)
            {
                handler(this, e);
            }
        }
 private void HandlePageEvicted(object sender, ItemEvictedEventArgs <int> e)
 {
     _requestedPages.Remove(e.Item);
     _fetchedPages.Remove(e.Item);
     _virtualItems.RemoveRange(e.Item * _pageSize, _pageSize);
 }