bool _disposed;                   //非托管资源是否回收完毕

        public PingServerNetCheck(FormMeiQ formMeiQ)
        {
            _timeOut          = 3000;
            _message          = "";
            _sendICMPTimes    = 4;
            _connect          = false;
            _formMeiQ         = formMeiQ;
            _failedDomainName = "";
        }
Exemplo n.º 2
0
 public NetCheck(FormMeiQ formMeiQ)
 {
     _formMeiQ = formMeiQ;
     //_textBoxInPut = textBoxInPut;
     //_strDomainName = textBoxInPut.Text.ToString().Replace("\r\n",":");//获取输入文本框的域名
     _strDomainName = "meiqia.com:" +
                      "app.meiqia.com:" +
                      "eco-push-api-agent.meiqia.com:" +
                      "static.meiqia.com:" +
                      "app-cdn-s0.b0.upaiyun.com:" +
                      "app-s3-cdn.b0.upaiyun.com";
     _dnsConfigCheck     = new DNSconfigCheck(_formMeiQ);
     _pingServerNetCheck = new PingServerNetCheck(_formMeiQ);
     _localNetCheck      = new LocalNetCheck(_formMeiQ);
     _mailSend           = new MailToMeiQ();
     _cmdRunCommand      = new CmdRunCommand();
     _systemInfo         = new SystemInfo();
 }
Exemplo n.º 3
0
 public DNSconfigCheck(FormMeiQ formMeiQ)
 {
     _domainName = "www.qq.com";
     _formMeiQ   = formMeiQ;
 }
Exemplo n.º 4
0
        public static void logToTextBox(string message, FormMeiQ mfromMeiQ)
        {
            FormMeiQ formMeiQ = mfromMeiQ;

            formMeiQ.Invoke(formMeiQ._wirteMessageToTextBoxOutPut, message);
        }
Exemplo n.º 5
0
 public LocalNetCheck(FormMeiQ form1)
 {
     _message   = "";
     _form1     = form1;
     _pingCheck = new PingServerNetCheck(form1);
 }