public void OnItemRemoved(object key, object value, ItemRemoveReason reason, BitSet Flag, EventContext eventContext) { EventCacheItem item = null; try { BitSet flag = new BitSet(0); if (eventContext.Item != null) { item = EventUtil.ConvertToItem(eventContext.Item); } if (_listener != null) { _listener.OnItemRemoved((string)key, value, reason, Flag, true, item); } } catch { } }
public void OnItemRemoved(string key, object value, CacheItemRemovedReason reason, BitSet flag, bool notifyAsync, EventCacheItem item) { try { if (_listener != null) { _listener.OnItemRemoved(key, value, reason, flag, notifyAsync, item); } } catch (Exception e) { } }