资源简介

之前看上一个米索性就做了这个,采用多线程多节点查询域名状态,如果发现域名掉下来立刻注册。项目整合了多个接口比如,代理访问,飞信发短信(这个好像现在接口停了),各大whois查询地址,53dns注册和查询的接口

代码片段和文件信息


using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Text;
using System.IO;

/// 
/// DLog 的摘要说明
/// 

public class DLog
{

    static int reg = 0;
    static int error = 0;
    static int no = 0;

    static int pall = 0;
    static StringBuilder NoStrs = new StringBuilder();
    static string path = Directory.GetCurrentDirectory();
    public static void AddLog_Count(string s)
    {

        if (s.Contains(“reg“))
            reg++;
        if (s.Contains(“error“))
            error++;
        if (s.Contains(“no“))
        {
            no++;
            NoStrs.Append(s);
        }
        StringBuilder sb = new StringBuilder();
        sb.Append(string.Format(“reg:{0}次\r\n“ reg.ToString()));
        sb.Append(string.Format(“no:{0}次\r\n“ no.ToString()));
        sb.Append(string.Format(“error:{0}次\r\n“ error.ToString()));

        int all = reg + error + no;

        if (all - p

 属性            大小     日期    时间   名称
----------- ---------  ---------- -----  ----

     文件       5120  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\bin\Debug\DM_Log.dll

     文件      11776  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\bin\Debug\DM_Log.pdb

     文件      10752  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\bin\Debug\Tools.dll

     文件      30208  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\bin\Debug\Tools.pdb

     文件       5632  2016-02-15 22:40  MyDomainHelper-pub\DM_Log\bin\Release\DM_Log.dll

     文件      13824  2016-02-15 22:40  MyDomainHelper-pub\DM_Log\bin\Release\DM_Log.pdb

     文件      24576  2016-02-15 22:40  MyDomainHelper-pub\DM_Log\bin\Release\Tools.dll

     文件      89600  2016-02-15 22:40  MyDomainHelper-pub\DM_Log\bin\Release\Tools.pdb

     文件       2186  2016-02-24 22:24  MyDomainHelper-pub\DM_Log\DLog.cs

     文件       2587  2015-01-09 23:34  MyDomainHelper-pub\DM_Log\DM_Log.csproj

     文件       6650  2015-01-09 23:34  MyDomainHelper-pub\DM_Log\obj\Debug\DesignTimeResolveAssemblyReferencesInput.cache

     文件        626  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\obj\Debug\DM_Log.csproj.FileListAbsolute.txt

     文件       6337  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\obj\Debug\DM_Log.csprojResolveAssemblyReference.cache

     文件       5120  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\obj\Debug\DM_Log.dll

     文件      11776  2015-01-09 23:39  MyDomainHelper-pub\DM_Log\obj\Debug\DM_Log.pdb

     文件       6668  2016-02-24 22:18  MyDomainHelper-pub\DM_Log\obj\Release\DesignTimeResolveAssemblyReferencesInput.cache

     文件       1280  2015-01-13 21:12  MyDomainHelper-pub\DM_Log\obj\Release\DM_Log.csproj.FileListAbsolute.txt

     文件       6341  2016-02-15 22:40  MyDomainHelper-pub\DM_Log\obj\Release\DM_Log.csprojResolveAssemblyReference.cache

     文件       5632  2016-02-15 22:40  MyDomainHelper-pub\DM_Log\obj\Release\DM_Log.dll

     文件      13824  2016-02-15 22:40  MyDomainHelper-pub\DM_Log\obj\Release\DM_Log.pdb

     文件       1332  2015-01-09 23:34  MyDomainHelper-pub\DM_Log\Properties\AssemblyInfo.cs

     文件      14336  2015-01-09 23:39  MyDomainHelper-pub\DomainHelper\bin\Debug\MyDomainHelper.DomainHelper.dll

     文件      28160  2015-01-09 23:39  MyDomainHelper-pub\DomainHelper\bin\Debug\MyDomainHelper.DomainHelper.pdb

     文件      10752  2015-01-09 23:39  MyDomainHelper-pub\DomainHelper\bin\Debug\Tools.dll

     文件      30208  2015-01-09 23:39  MyDomainHelper-pub\DomainHelper\bin\Debug\Tools.pdb

     文件       5632  2016-02-15 22:40  MyDomainHelper-pub\DomainHelper\bin\Release\DM_Log.dll

     文件      13824  2016-02-15 22:40  MyDomainHelper-pub\DomainHelper\bin\Release\DM_Log.pdb

     文件      15360  2016-02-15 22:40  MyDomainHelper-pub\DomainHelper\bin\Release\MyDomainHelper.DomainHelper.dll

     文件      32256  2016-02-15 22:40  MyDomainHelper-pub\DomainHelper\bin\Release\MyDomainHelper.DomainHelper.pdb

     文件      24576  2016-02-15 22:40  MyDomainHelper-pub\DomainHelper\bin\Release\Tools.dll

............此处省略197个文件信息

评论

共有 条评论

相关资源