private void DataBing()
 {
     SpiderConfigBll spbll = new SpiderConfigBll();
     var list = spbll.LoadSpiderconfig();
     repConfigList.DataSource = list;
     repConfigList.DataBind();
 }
Example #2
0
 public void Start()
 {
     LogServer.WriteLog("SpriderSystem Start", "RunInfo");
        var taskList = new SpiderConfigBll().LoadSpiderconfig();
        if (taskList == null)
        {
        LogServer.WriteLog("方案列表获取失败.....", "RunInfo");
        return;
        }
        var aliveList = taskList.Where(p => p.IsAlive);
        foreach (SpiderConfig item in aliveList)
        {
        SpiderConfig item1 = item;
        LogServer.WriteLog(item.TaskName + "\t开始执行", "RunInfo");
        Task.Factory.StartNew(() => CaseSystem(item1));
        Thread.Sleep(100);
        }
 }