Esempio n. 1
0
            void IStage.Leave()
            {
                if (_Result.HasValue == false && ResultEvent != null)
                {
                    var call = ResultEvent;
                    ResultEvent = null;
                    call(false, null);
                }

                if (_Result.HasValue && _Result.Value == false)
                {
                    _Peer.Close();
                }

                Singleton <Log> .Instance.WriteInfo("Agent connect leave.");
            }