public FtpDirectoryRemover(IFtpCommandExecutor ftpExecutor, IFtpContentGetter ftpContentGetter, IFtpFileRemover ftpFileRemover, IClassLogger logger) =>
 (_ftpExecutor, _ftpContentGetter, _ftpFileRemover, _logger) = (ftpExecutor, ftpContentGetter, ftpFileRemover, logger);
Пример #2
0
 public FtpDirectoryUploader(IFtpDirectoryCreator ftpDirectoryCreator, IFtpFileUploader ftpFileUploader, IClassLogger logger) =>
 (_ftpDirectoryCreator, _ftpFileUploader, _logger) = (ftpDirectoryCreator, ftpFileUploader, logger);
Пример #3
0
 public FtpCommandExecutor(IFtpClientProvider ftpClientProvider, IClassLogger logger) =>
 (_ftpClientProvider, _logger) = (ftpClientProvider, logger);
Пример #4
0
 /// <summary>
 ///     ctor
 /// </summary>
 /// <param name="classLogger"></param>
 public LogService(IClassLogger classLogger)
 {
     _classLogger = classLogger;
     _logger = _classLogger.Get();
 }
Пример #5
0
 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);
Пример #6
0
        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);
        }
Пример #7
0
 public ContentUpdater(ChecksumDataStorage checksumDataStorage, IFtpManager ftpManager, IClassLogger logger) =>
 (_checksumDataStorage, _ftpManager, _logger) = (checksumDataStorage, ftpManager, logger);
 public LoggerAdapter(IClassLogger logger)
 {
     this.Logger = logger;
 }