ResultBasic <bool> ISpider.Run() { Console.WriteLine("抓数据开始"); Console.WriteLine("抓数据完成"); //Console.WriteLine("发布消息队列 - 抓数据完成"); Console.WriteLine("调用解析服务"); _analyzer.Run(); return(true.ResultBasic_Success()); }
async public Task StartAnalysisAsync(string args) { if (_analyzer == null) { throw new InvalidOperationException("Don't forget to set the analyzer in the derived analysis window class constructor."); } // start the progress bar: it will be stopped at the end of the analysis StartProgress(); AddLine("Starting analysis...\r\n"); await RunAsync((Action)(() => _analyzer.Run(args))); }