Exemplo n.º 1
0
 public BackupManager(
     IFileManager source,
     IFileManager destination,
     HistoryProvider historyProvider,
     FileChangeValidator changeValidator,
     ILogger <BackupManager> logger,
     int concurrentFileDumpLimit = -1
     )
 {
     _source                  = source;
     _destination             = destination;
     _historyProvider         = historyProvider;
     _changeValidator         = changeValidator;
     _logger                  = logger;
     _concurrentFileDumpLimit = concurrentFileDumpLimit;
 }
Exemplo n.º 2
0
 public BackupTask
 (
     string sourceDir,
     string destinationDir,
     IFileManager sourceFs,
     IFileManager destinationFs,
     HistoryProvider historyProvider,
     FileChangeValidator changeValidator
 )
 {
     SourceDir       = sourceDir;
     DestinationDir  = destinationDir;
     SourceFs        = sourceFs;
     DestinationFs   = destinationFs;
     HistoryProvider = historyProvider;
     ChangeValidator = changeValidator;
 }