Example #1
0
 public CSharp(IBaseHelper helper, string scanPath, bool isAsync) : base(helper, scanPath, isAsync)
 {
     ActionHelper = helper;
     if (isAsync)
     {
         Files = helper.GetAllFilesFromFolderAsync(scanPath, "*.cs");
     }
     else
     {
         Files = helper.GetAllFilesFromFolder(scanPath, "*.cs");
     }
 }
Example #2
0
 protected Base(IBaseHelper helper, string scanPath, bool isAsync = false)
 {
     FileExtension = "*";
     ActionHelper  = helper;
     Files         = isAsync ? helper.GetAllFilesFromFolderAsync(scanPath, FileExtension) : helper.GetAllFilesFromFolder(scanPath, FileExtension);
 }