示例#1
0
        public async void Run()
        {
            List <string> pages = new List <string>();

            string page;

            while (true)
            {
                Console.WriteLine("Enter start page:");
                Console.Write(wiki.BaseUrl);
                page = Console.ReadLine();

                if (wiki.IsExist(page))
                {
                    break;
                }

                Console.WriteLine("This page doesn't exist, try again" + Environment.NewLine);
            }

            pages.Add(page);

            DoParseAsync(pages, 1, 3).Wait();

            Console.ReadKey();
        }