Exemplo n.º 1
0
 protected internal virtual void RemoveConnection(GoListener listener)
 {
     lock (this)
     {
         if (IsDispatching())
         {
             _pendingRuns = Append(_pendingRuns, new RemoveConnectionImpl(this, listener));
         }
         else
         {
             _listeners = Cons.RemoveAll(_listeners, listener);
             ConnectionRemoved();
         }
     }
 }
Exemplo n.º 2
0
 public override void Action(object o)
 {
     outerInstance._listeners = Cons.RemoveAll(outerInstance._listeners, listener);
     outerInstance.ConnectionRemoved();
 }