Beispiel #1
0
            /** <inheritDoc /> */
            public void OnEvent(IEnumerable <ICacheEntryEvent <int, V> > evts)
            {
                ICollection <ICacheEntryEvent <object, object> > entries0 =
                    new List <ICacheEntryEvent <object, object> >();

                foreach (ICacheEntryEvent <int, V> evt in evts)
                {
                    entries0.Add(CQU.CreateEvent <object, object>(evt.Key, evt.OldValue, evt.Value));
                }

                CB_EVTS.Add(new CallbackEvent(entries0));
            }
Beispiel #2
0
            /** <inheritDoc /> */
            public bool Evaluate(ICacheEntryEvent <int, V> evt)
            {
                if (err)
                {
                    throw new Exception("Filter error.");
                }

                FILTER_EVTS.Add(new FilterEvent(ignite,
                                                CQU.CreateEvent <object, object>(evt.Key, evt.OldValue, evt.Value)));

                return(res);
            }