Ejemplo n.º 1
0
 public void OnItemAdded(string key, bool notifyAsync, EventCacheItem item, BitSet flag)
 {
     try
     {
         if (_listener != null)
         {
             _listener.OnItemAdded(key, notifyAsync, item, flag);
         }
     }
     catch
     {
     }
 }
        public void OnItemAdded(object key, EventContext eventContext)
        {
            try
            {
                BitSet         flag = new BitSet(0);
                EventCacheItem item = EventUtil.ConvertToItem(eventContext.Item);

                if (_listener != null)
                {
                    _listener.OnItemAdded((string)key, true, item, flag);
                }
            }
            catch
            {
            }
        }