예제 #1
0
파일: Scanner.cs 프로젝트: Dr1N/FileScanner
 public async Task Run()
 {
     CheckDisposed();
     try
     {
         await _handler.ProcessDirectoryAsync(_cancellationTokenSource.Token);
     }
     catch (Exception ex)
     {
         _printer?.Print($"Processing error: {ex.Message}", ConsoleColor.Red);
     }
     _printer?.Print("Done!", ConsoleColor.Green);
 }