示例#1
0
        public void Process()
        {
            if (!File.Exists("log.txt"))
            {
                Console.WriteLine("log.txt file not exist!");
                Console.Read();
                return;
            }
            var links       = ParseFileLinks("log.txt");
            var xlTaskItems = CreateXlTaskQueues(links);
            //Download(xlTaskItems);
            var xlHelper = new XLHelper();

            xlHelper.Init();
            ProcessQueues(xlHelper, xlTaskItems);

            Console.WriteLine("work complete!");
            MyCommonHelper.TryChangeFileName("log.txt", string.Format("log_{0}.txt", DateTime.Now.ToString("yyyyMMdd-HHmmss")));
        }
示例#2
0
 static PsController()
 {
     _xlHelper.Init();
 }