コード例 #1
0
ファイル: Bypass.cs プロジェクト: zhangxin8105/LGame
 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();
         }
     }
 }
コード例 #2
0
ファイル: Bypass.cs プロジェクト: zhangxin8105/LGame
 public override void Action(object o)
 {
     outerInstance._listeners = Cons.RemoveAll(outerInstance._listeners, listener);
     outerInstance.ConnectionRemoved();
 }