keyportdetectaction.cs

来自「破解的飞信源代码」· CS 代码 · 共 41 行

CS
41
字号
namespace Imps.Client.CommLayer.NetworkDetect
{
    using System;
    using System.Collections.Generic;
    using System.Threading;

    public class KeyPortDetectAction : DetectAction
    {
        public KeyPortDetectAction()
        {
            base.Description = "主要端口";
            base.NextStage = NetworkDetectStage.Finished;
        }

        public override void BeginDetectAction()
        {
            ThreadPool.QueueUserWorkItem(new WaitCallback(this.StartDetect), this);
        }

        public override void CancelDetectAction()
        {
        }

        private void StartDetect(object state)
        {
            Thread.CurrentThread.Name = "Imps.Client.Pc.NetworkDetect.KeyPortDetectAction";
            List<DetectResult> details = new List<DetectResult>();
            base.FireDetecFinsihedEvent(this, new DetectEventArgs(true, details));
        }

        public override NetworkDetectStage CurrentStage
        {
            get
            {
                return NetworkDetectStage.KeyPort;
            }
        }
    }
}

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?