private void ProcessPDFs(object state) { foreach (var file in System.IO.Directory.GetFiles(Directory)) { PDFParser parser = new PDFParser(file); _taskContainer.AddAndRun(Task.Run(async() => await parser.ParseAndSave())); } }
private void ProcessPDFs(object state) { foreach (var file in System.IO.Directory.GetFiles(Directory)) { PDFParser parser = new PDFParser(file); _taskContainer.AddAndRun(Task.Run(async() => await parser.ParseAndSave())); } }