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

            _timer.TryDispose();
            Svr.TryDispose();
        }
Example #2
0
        /// <summary>停止工作</summary>
        protected override void StopWork(String reason)
        {
            Svr.TryDispose();
            Svr = null;

            base.StopWork(reason);
        }