Esempio n. 1
0
        static void Main(string[] args)
        {
            var options = new RegExTractorOptions();

            if (CommandLine.Parser.Default.ParseArguments(args, options))
            {
                var workflow = new RegExTractorSimpleWorkflow();
                workflow.SingleFileCrawlFinished += workflow_SingleFileCrawlFinished;
                workflow.Process(options.Directory, options.Recursive, options.Filter, options.SearchTermInputFile, options.OutputFile, options.MaxThreads);
            }

            Console.WriteLine("Finished ... Press any key ...");
            Console.ReadKey();
        }
Esempio n. 2
0
 void backgroundWorker_DoWork(object sender, DoWorkEventArgs e)
 {
     workflow.Process(searchDirectory, recursive, filter, searchTermFile, outputFile, maxThreads);
 }