// Constructors public FileRestore(IArchiveManager archiveManager, IDeltaPatcher deltaPatcher, ISignatureCreator signatureCreator, IDeltaCreator deltaCreator, IFileHandlingStrategySelector fileHandlingStrategySelectors) { _deltaCreator = deltaCreator; _signatureCreator = signatureCreator; _fileHandlingStrategySelector = fileHandlingStrategySelectors; _archiveManager = archiveManager; _deltaPatcher = deltaPatcher; }
// Constructors public FileManager(IFileConfigurationReader fileConfigurationReader, IFileConfigurationWriter fileConfigurationWriter, IFileWatcherFactory fileWatcherFactory, IFileHandlingStrategySelector fileHandlingStrategySelector, IFileRestore fileRestore, ITransactionWriter transactionWriter, IConfigFilePathLocator configFilePathLocator) { _configFilePathLocator = configFilePathLocator; _transactionWriter = transactionWriter; _fileRestore = fileRestore; _fileHandlingStrategySelector = fileHandlingStrategySelector; _fileWatchers = new List <IFileWatcher>(); _fileConfigurationReader = fileConfigurationReader; _fileConfigurationWriter = fileConfigurationWriter; _fileWatcherFactory = fileWatcherFactory; _configuration = _fileConfigurationReader.Read(); foreach (var current in _configuration) { CreateFileWatcher(current); } }