Exemplo n.º 1
0
 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);
 }