예제 #1
0
 public void SetLog(string filePath, LogLevel level)
 {
     lock (_lock)
     {
         if (_fileWriter.FileExists(filePath))
         {
             _fileWriter.DeleteFile(filePath);
         }
         _filePath     = filePath;
         _enabledLevel = level;
     }
 }
예제 #2
0
 private void CleanGenereatedFiles()
 {
     _logger.Info($"Cleaning generated files for {SlnxName}");
     foreach (var pattern in new[] { CsProject.ImportSlnxConfigName })
     {
         foreach (string f in Directory.EnumerateFiles(ProjectsSearchPath, pattern, new EnumerationOptions()
         {
             RecurseSubdirectories = true
         }))
         {
             _fileWriter.DeleteFile(f);
         }
     }
 }