Example #1
0
 public override void RemoveDispatcher(MessageFilter filter)
 {
     lock (ThisLock)
     {
         _filterTable.Remove(filter);
     }
 }
Example #2
0
 public bool Remove(MessageFilter filter)
 {
     try
     {
         _rwl.AcquireWriterLock(10000);
         return(_listeners.Remove(filter));
     }
     finally
     {
         _rwl.ReleaseLock();
     }
 }