Пример #1
0
        static void Main(string[] args)
        {
            const int noOfCrawlers = 8;
            Crawl     c            = new Crawl();

            for (int i = 0; i < noOfCrawlers; i++)
            {
                var i1 = i;
                Task.Run(() =>
                {
                    if (i1 == 0)
                    {
                        c.Start();
                    }
                    else
                    {
                        new Crawl().Start();
                    }
                });
            }

            Console.ReadLine();
        }
Пример #2
0
 static void Main(string[] args)
 {
     Crawl c = new Crawl();
     List<MusicData> data = c.crawlMusicData(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));
     //TODO Insert database upload
 }
Пример #3
0
 static void Main(string[] args)
 {
     Crawl            c    = new Crawl();
     List <MusicData> data = c.crawlMusicData(Environment.GetFolderPath(Environment.SpecialFolder.MyMusic));
     //TODO Insert database upload
 }