public void OnActiveQueryChanged(object key, Alachisoft.NCache.Caching.Queries.QueryChangeType changeType,
                                         List <CQCallbackInfo> activeQueries, EventContext eventContext)
        {
            try
            {
                if (_listener != null)
                {
                    foreach (CQCallbackInfo queryInfo in activeQueries)
                    {
                        EventDataFilter datafilter = EventDataFilter.None;
                        foreach (EventDataFilter df in queryInfo.DataFilters.Values)
                        {
                            datafilter = df;
                            break;
                        }

                        _listener.OnActiveQueryChanged(queryInfo.CQId,
                                                       (QueryChangeType)Convert.ToInt32(changeType), (string)key, true, null, null, null,
                                                       datafilter);
                    }
                }
            }
            catch
            {
            }
        }
예제 #2
0
 public void OnActiveQueryChanged(string queryId, QueryChangeType changeType, string key, bool notifyAsync,
                                  EventCacheItem item, EventCacheItem oldItem, BitSet flag, EventDataFilter datafilter)
 {
     try
     {
         if (_listener != null)
         {
             _listener.OnActiveQueryChanged(queryId, changeType, key, notifyAsync, item, oldItem, flag,
                                            datafilter);
         }
     }
     catch
     {
     }
 }