Exemplo n.º 1
0
 public void Invoke(ObjectChangedEventArgs e)
 {
     lock (syncRoot)
     {
         ObjectChangedPublicEvent callbacks;
         if (list.TryGetValue(e.Serial, out callbacks))
         {
             callbacks.Invoke(null, e);
         }
     }
 }
 protected override bool OnEventArgsTest(object eventSender, ObjectChangedEventArgs eventArgs)
 {
     if ((eventArgs.Type & changes) != 0)
     {
         return(base.OnEventArgsTest(eventArgs, eventArgs));
     }
     else
     {
         return(false);
     }
 }
Exemplo n.º 3
0
        public void InvokeAsync(ObjectChangedEventArgs e)
        {
            lock (syncRoot)
            {
                ObjectChangedPublicEvent callbacks;
                if (list.TryGetValue(e.Serial, out callbacks))
                {
                    Event args = new Event();
                    args.Handler   = callbacks;
                    args.EventArgs = e;

                    eventQueue.Enqueue(args);
                    itemQueuedEvent.Set();
                }
            }
        }
Exemplo n.º 4
0
 private static bool StatusUpdateFilter(object eventSender, ObjectChangedEventArgs e)
 {
     return(e.IsStatusUpdate);
 }