예제 #1
0
 private Task <List <SearchTask> > FindAndExecuteAsync()
 {
     return(Task.Run(() =>
     {
         var storeResultDir = "OutFiles";
         try
         {
             if (Directory.Exists(storeResultDir))
             {
                 Directory.Delete(storeResultDir, true);
             }
             Directory.CreateDirectory(storeResultDir);
         }
         catch
         {
             //skip
         }
         return _converterManager.Execute(SettingsViewModel.SearchTasks, storeResultDir);
     }));
 }