예제 #1
0
 public YemekCrawler(LinqToSQLCRUD crud)
 {
     dict    = new Dictionary <string, bool>();
     urlList = new List <String>();
     urlList.Add(getStartUrl());
     index     = 0;
     this.crud = crud;
 }
예제 #2
0
        static void Main(string[] args)
        {
            crud = new LinqToSQLCRUD();
            List <Thread> threadList = new List <Thread>();

            threadList.Add(new Thread(new ThreadStart(yemekCrawlerWorker)));
            threadList.Add(new Thread(new ThreadStart(nefisYemekWorker)));
            threadList.Add(new Thread(new ThreadStart(lezzetWorker)));

            foreach (var thread in threadList)
            {
                thread.Start();
            }

            Console.Read();
        }