예제 #1
0
        /// <summary>
        /// 停止工作
        /// </summary>
        protected override void StopWork(String reason)
        {
            base.StopWork(reason);

            _timer.TryDispose();
            Svr.TryDispose();
        }
예제 #2
0
파일: Program.cs 프로젝트: NewLifeX/XLink
        /// <summary>停止工作</summary>
        protected override void StopWork(String reason)
        {
            Svr.TryDispose();
            Svr = null;

            base.StopWork(reason);
        }