public FtpDirectoryRemover(IFtpCommandExecutor ftpExecutor, IFtpContentGetter ftpContentGetter, IFtpFileRemover ftpFileRemover, IClassLogger logger) => (_ftpExecutor, _ftpContentGetter, _ftpFileRemover, _logger) = (ftpExecutor, ftpContentGetter, ftpFileRemover, logger);
public FtpDirectoryUploader(IFtpDirectoryCreator ftpDirectoryCreator, IFtpFileUploader ftpFileUploader, IClassLogger logger) => (_ftpDirectoryCreator, _ftpFileUploader, _logger) = (ftpDirectoryCreator, ftpFileUploader, logger);
public FtpCommandExecutor(IFtpClientProvider ftpClientProvider, IClassLogger logger) => (_ftpClientProvider, _logger) = (ftpClientProvider, logger);
/// <summary> /// ctor /// </summary> /// <param name="classLogger"></param> public LogService(IClassLogger classLogger) { _classLogger = classLogger; _logger = _classLogger.Get(); }
public DifferenceGenerator(ChecksumDataStorage checksumDataStorage, IFtpDirectoryTreeBuilder ftpDirectoryTreeBuilder, IFtpManager ftpManager, ILocalDirectoryTreeBuilder localDirectoryTreeBuilder, IClassLogger logger, ITreeComparer treeComparer) => (_checksumDataStorage, _ftpDirectoryTreeBuilder, _ftpManager, _localDirectoryTreeBuilder, _logger, _treeComparer) = (checksumDataStorage, ftpDirectoryTreeBuilder, ftpManager, localDirectoryTreeBuilder, logger, treeComparer);
public FtpManager(IChecksumCalculator checksumCalculator, ChecksumDataStorage checksumDataStorage, IFtpClientProvider ftpClientProvider, IClassLogger logger) { var ftpExecutor = new FtpCommandExecutor(ftpClientProvider, logger); _ftpContentGetter = new FtpContentGetter(ftpExecutor); _ftpDirectoryCreator = new FtpDirectoryCreator(ftpExecutor); _ftpDirectoryRemover = new FtpDirectoryRemover(ftpExecutor, _ftpContentGetter, _ftpFileRemover, logger); _ftpFileUploader = new FtpFileUploader(checksumCalculator, ftpExecutor, checksumDataStorage); _ftpDirectoryUploader = new FtpDirectoryUploader(_ftpDirectoryCreator, _ftpFileUploader, logger); _ftpExistenceChecker = new FtpExistenceChecker(ftpExecutor); _ftpFileRemover = new FtpFileRemover(ftpExecutor); _ftpTextReader = new FtpTextReader(ftpExecutor); _ftpTextUploader = new FtpTextUploader(_ftpFileUploader); }
public ContentUpdater(ChecksumDataStorage checksumDataStorage, IFtpManager ftpManager, IClassLogger logger) => (_checksumDataStorage, _ftpManager, _logger) = (checksumDataStorage, ftpManager, logger);
public LoggerAdapter(IClassLogger logger) { this.Logger = logger; }