Esempio n. 1
0
 public void EntryAdded(EntryEvent <int?, string> @event)
 {
     Add.Signal();
 }
Esempio n. 2
0
 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);
 }
Esempio n. 4
0
 public virtual void AfterUpdate(EntryEvent <TKey, TVal> ev)
 {
     check(ev);
 }
Esempio n. 5
0
 public void EntryEvicted(EntryEvent<TKey, TValue> entryEvent)
 {
     if (Evicted != null) Evicted(entryEvent);
 }
Esempio n. 6
0
 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);
 }
Esempio n. 8
0
 public void EntryRemoved(EntryEvent<TKey, TValue> entryEvent)
 {
     if (Removed != null) Removed(entryEvent);
 }
Esempio n. 9
0
        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);
                    }
                }
            }
        }
Esempio n. 10
0
        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;
                    }
                }

            }
        }
Esempio n. 11
0
        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));
            }
        }
Esempio n. 12
0
 public void EntryLoaded(EntryEvent <int?, string> @event)
 {
     Loaded.Signal();
 }
Esempio n. 13
0
 public void AfterUpdate(EntryEvent ev)
 {
     Console.WriteLine("{0}--- Received afterUpdate event of: {1}",
                       Environment.NewLine, ev.Key);
 }
Esempio n. 14
0
 public override void AfterUpdate(EntryEvent <TKey, TVal> ev)
 {
     ++m_numAfterUpdate;
     UpdateLatency(ev);
 }
Esempio n. 15
0
 public void AfterDestroy(EntryEvent <TKey, TValue> ev)
 {
     Util.Log("SimpleCacheListener: Received AfterDestroy event for: {0}", ev.Key);
 }
Esempio n. 16
0
 public void EntryExpired(EntryEvent <TKey, TValue> entryEvent)
 {
     Expired?.Invoke(entryEvent);
 }
Esempio n. 17
0
 public void AfterInvalidate(EntryEvent <TKey, TValue> ev)
 {
     Util.Log("SimpleCacheListener: Received AfterInvalidate event for: {0}", ev.Key);
 }
Esempio n. 18
0
 public void EntryUpdated(EntryEvent<TKey, TValue> entryEvent)
 {
     if (Updated != null) Updated(entryEvent);
 }
Esempio n. 19
0
 private void checkCallbackArg(EntryEvent <int, object> entryEvent, ref int updateCount)
 {
     check(entryEvent.CallbackArgument, ref updateCount);
 }
Esempio n. 20
0
 public void EntryMerged(EntryEvent<TKey, TValue> entryEvent)
 {
     if (Merged != null) Merged(entryEvent);
 }
Esempio n. 21
0
 public override void AfterCreate(EntryEvent <int, object> ev)
 {
     checkCallbackArg(ev, ref m_creates);
 }
Esempio n. 22
0
 public void AfterDestroy(EntryEvent <TKey, TVal> ev)
 {
     Console.WriteLine("DurableCacheListener: Received AfterDestroy event for: {0}", ev.Key);
 }
Esempio n. 23
0
 public override void AfterInvalidate(EntryEvent <int, object> ev)
 {
     checkCallbackArg(ev, ref m_invalidates);
 }
Esempio n. 24
0
 public virtual void AfterInvalidate(EntryEvent <TKey, TVal> ev)
 {
 }
Esempio n. 25
0
 public override void AfterDestroy(EntryEvent <int, object> ev)
 {
     checkCallbackArg(ev, ref m_destroys);
 }
Esempio n. 26
0
 public virtual void AfterDestroy(EntryEvent <TKey, TVal> ev)
 {
 }
Esempio n. 27
0
            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);
            }
Esempio n. 28
0
 public void EntryUpdated(EntryEvent <int?, string> @event)
 {
     Update.Signal();
 }
Esempio n. 29
0
 public override void AfterInvalidate(EntryEvent <TKey1, TVal1> ev)
 {
     FwkTest <TKey, TVal> .CurrentTest.FwkInfo("SilenceListener: AfterInvalidate");
 }
Esempio n. 30
0
 public void EntryEvicted(EntryEvent <int?, string> @event)
 {
     Evict.Signal();
 }
Esempio n. 31
0
 public void EntryAdded(EntryEvent<TKey, TValue> entryEvent)
 {
     if (Added != null) Added(entryEvent);
 }
Esempio n. 32
0
 public override void AfterUpdate(EntryEvent ev)
 {
     check(ev, "AfterUpdate");
 }
Esempio n. 33
0
 public void EntryMerged(EntryEvent <TKey, TValue> entryEvent)
 {
     Merged?.Invoke(entryEvent);
 }