public CrawlerThreadContext(string _Site, Thread _CurrentThread, Thread _MainThread, CrawlerCore _kernel) :base(_Site, _CurrentThread, _MainThread, _kernel) { SiteQueue = new PageQueue(); SiteQueue.Add(_Site); }
private void MainForm_Load(object sender, EventArgs e) { kernel = new CrawlerCore(startParams.SystemConfig); //kernel.OuterLogDelegate = new RobotCore.OuterLog(this.LOG); kernel.Logger.OuterLogDelegate = this.LOG;//new RobotCore.OuterLog(this.LOG); kernel.Start(startParams.SystemConfig.SiteList.ToList<object>()); rtbLog.Clear(); timer1.Interval = 10; timer1.Start(); //foreach() }