Ejemplo n.º 1
0
 public CrawlerThreadContext(string _Site, Thread _CurrentThread, Thread _MainThread, CrawlerCore _kernel)
     :base(_Site,  _CurrentThread,  _MainThread, _kernel)
 {
     SiteQueue = new PageQueue();
     SiteQueue.Add(_Site);
 }
Ejemplo n.º 2
0
        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()
        }