예제 #1
0
파일: Agent.cs 프로젝트: kof1016/DataFlow
        private void _Shutdown()
        {
            _CommandBridge.Break();

            _AgentCore.Finial();

            _GhostRequest.OnReleaseEvent -= _SoulProvider.Unbind;
        }
예제 #2
0
            void IStage.Leave()
            {
                _WriterStop();
                _ReaderStop();

                if (_Peer != null)
                {
                    _Peer.Close();
                    _Peer = null;
                }

                _Core.Finial();
                Singleton <Log> .Instance.WriteInfo("Agent online leave.");
            }
예제 #3
0
        public void Shutdown()
        {
            _Agent.ErrorVerifyEvent -= _ErrorVerifyEvent;
            _Agent.ErrorMethodEvent -= _ErrorMethodEvent;
            _Connected = false;
            if (_BreakEvent != null)
            {
                _BreakEvent();
            }

            _BreakEvent = null;
            _Agent.Finial();

            _GhostRequest.PingEvent    -= _OnRequestPing;
            _GhostRequest.ReleaseEvent -= _SoulProvider.Unbind;
        }