public void EntryAdded(EntryEvent <int?, string> @event) { Add.Signal(); }
public void EntryRemoved(EntryEvent <int?, string> @event) { Remove.Signal(); }
public void AfterUpdate(EntryEvent <TKey, TVal> ev) { Console.WriteLine("DurableCacheListener: Received AfterUpdate event of: {0}", ev.Key); }
public virtual void AfterUpdate(EntryEvent <TKey, TVal> ev) { check(ev); }
public void EntryEvicted(EntryEvent<TKey, TValue> entryEvent) { if (Evicted != null) Evicted(entryEvent); }
public void EntryExpired(EntryEvent<TKey, TValue> entryEvent) { if (Expired != null) Expired(entryEvent); }
public void AfterInvalidate(EntryEvent <TKey, TVal> ev) { Console.WriteLine("SimpleCacheListener: Received AfterInvalidate event for: {0}", ev.Key); }
public void EntryRemoved(EntryEvent<TKey, TValue> entryEvent) { if (Removed != null) Removed(entryEvent); }
void EntryRemoved(EntryEvent<CarKey, Car> _event) { if (this.InvokeRequired) { this.Invoke( new MethodInvoker( delegate() { EntryRemoved(_event); })); } else { long modelId = _event.GetKey().ModelId; BindingList<RowData> list = bindingSource.DataSource as BindingList<RowData>; for (int i = 0; i < list.Count; i++) { if (modelId == list[i].ModelId) { list.RemoveAt(i); } } } }
void EntryUpdated(EntryEvent<CarKey, Car> _event) { if (this.InvokeRequired) { this.Invoke( new MethodInvoker( delegate() { EntryUpdated(_event); })); } else { Console.WriteLine("UPDATE RECEIVED"); long modelId = _event.GetKey().ModelId; BindingList<RowData> list = bindingSource.DataSource as BindingList<RowData>; for (int i = 0; i < list.Count; i++) { if (modelId == list[i].ModelId) { CarKey key = _event.GetKey(); Car car = _event.GetValue(); var row = list[i]; row.Update(key, car); list[i] = row; } } } }
void EntryAdded(EntryEvent<CarKey, Car> _event) { if (this.InvokeRequired) { this.Invoke( new MethodInvoker( delegate() { EntryAdded(_event); })); } else { BindingList<RowData> list = bindingSource.DataSource as BindingList<RowData>; CarKey key = _event.GetKey(); Car car = _event.GetValue(); list.Add(new RowData(key, car)); } }
public void EntryLoaded(EntryEvent <int?, string> @event) { Loaded.Signal(); }
public void AfterUpdate(EntryEvent ev) { Console.WriteLine("{0}--- Received afterUpdate event of: {1}", Environment.NewLine, ev.Key); }
public override void AfterUpdate(EntryEvent <TKey, TVal> ev) { ++m_numAfterUpdate; UpdateLatency(ev); }
public void AfterDestroy(EntryEvent <TKey, TValue> ev) { Util.Log("SimpleCacheListener: Received AfterDestroy event for: {0}", ev.Key); }
public void EntryExpired(EntryEvent <TKey, TValue> entryEvent) { Expired?.Invoke(entryEvent); }
public void AfterInvalidate(EntryEvent <TKey, TValue> ev) { Util.Log("SimpleCacheListener: Received AfterInvalidate event for: {0}", ev.Key); }
public void EntryUpdated(EntryEvent<TKey, TValue> entryEvent) { if (Updated != null) Updated(entryEvent); }
private void checkCallbackArg(EntryEvent <int, object> entryEvent, ref int updateCount) { check(entryEvent.CallbackArgument, ref updateCount); }
public void EntryMerged(EntryEvent<TKey, TValue> entryEvent) { if (Merged != null) Merged(entryEvent); }
public override void AfterCreate(EntryEvent <int, object> ev) { checkCallbackArg(ev, ref m_creates); }
public void AfterDestroy(EntryEvent <TKey, TVal> ev) { Console.WriteLine("DurableCacheListener: Received AfterDestroy event for: {0}", ev.Key); }
public override void AfterInvalidate(EntryEvent <int, object> ev) { checkCallbackArg(ev, ref m_invalidates); }
public virtual void AfterInvalidate(EntryEvent <TKey, TVal> ev) { }
public override void AfterDestroy(EntryEvent <int, object> ev) { checkCallbackArg(ev, ref m_destroys); }
public virtual void AfterDestroy(EntryEvent <TKey, TVal> ev) { }
public override void AfterUpdate(EntryEvent <TKey1, TVal1> ev) { FwkTest <TKey, TVal> .CurrentTest.FwkInfo("SilenceListener: AfterUpdate"); FwkTest <TKey, TVal> .CurrentTest.FwkInfo("SilenceListener: AfterUpdate key = {0} value = {1}", ev.Key, ev.NewValue); }
public void EntryUpdated(EntryEvent <int?, string> @event) { Update.Signal(); }
public override void AfterInvalidate(EntryEvent <TKey1, TVal1> ev) { FwkTest <TKey, TVal> .CurrentTest.FwkInfo("SilenceListener: AfterInvalidate"); }
public void EntryEvicted(EntryEvent <int?, string> @event) { Evict.Signal(); }
public void EntryAdded(EntryEvent<TKey, TValue> entryEvent) { if (Added != null) Added(entryEvent); }
public override void AfterUpdate(EntryEvent ev) { check(ev, "AfterUpdate"); }
public void EntryMerged(EntryEvent <TKey, TValue> entryEvent) { Merged?.Invoke(entryEvent); }