Exemplo n.º 1
0
 public void OnCustomRemoveCallback(short callbackId, string key, object value,
                                    CacheItemRemovedReason reason, BitSet Flag, bool notifyAsync, EventCacheItem item,
                                    EventDataFilter dataFilter)
 {
     object[] val = new object[] { value, new CallbackInfo(null, callbackId, dataFilter) };
     _listener.OnCustomRemoveCallback(key, val, reason, Flag, notifyAsync, item);
 }
        public void OnCustomRemoveCallback(object key, object value, ItemRemoveReason reason, BitSet Flag,
                                           EventContext eventContext)
        {
            EventCacheItem         item         = EventUtil.ConvertToItem(eventContext.Item);
            CacheItemRemovedReason removeReason = EventUtil.ConvertToCIRemoveReason(reason);

            _listener.OnCustomRemoveCallback((string)key, value, removeReason, Flag, true, item);
        }