Exemplo n.º 1
0
 ///------------
 public void Dispose()
 {
     Disconnect();
     _heartBeatTimer.Stop();
     TimerMgr.RemoveTimer(_heartBeatTimer);
     _heartBeatTimer = null;
 }
Exemplo n.º 2
0
 override protected void _onRelease()
 {
     if (_timer != null)
     {
         TimerMgr.RemoveTimer(_timer);
         _timer = null;
     }
 }
Exemplo n.º 3
0
 public void _Clear()
 {
     if (_timer != null)
     {
         TimerMgr.RemoveTimer(_timer);
         _timer = null;
     }
 }
Exemplo n.º 4
0
 /// Note: This doesn't ensure the remote server don't receives RPC call, but only ensure the caller don't
 /// receives RPC callback.
 public void Cancel()
 {
     if (_timer != null)
     {
         TimerMgr.RemoveTimer(_timer);
         _timer = null;
     }
     _netRPCComponent._CancelRPCCall(this);
 }
Exemplo n.º 5
0
        public void _HandleRPCReturn(_NetRPCReturn retMsg, Exception exception)
        {
            if (_timer != null)
            {
                _timer.Stop();
                TimerMgr.RemoveTimer(_timer);
                _timer = null;
            }

            _bIsDone       = true;
            _RetrunMessage = retMsg;

            _error = exception;

            if (_OnCallback != null)
            {
                _OnCallback(retMsg, exception);
            }
            else
            {
                /// Should never go here
                Debugger.Assert(false);
            }
        }