public EntrySaverService(IFTPEntryRepo entryRepo, IFTPPathRepo pathRepo, IIdProvider idProvider, ILoggerService logger) { _entryRepo = entryRepo ?? throw new ArgumentNullException(nameof(entryRepo)); _pathRepo = pathRepo ?? throw new ArgumentNullException(nameof(pathRepo)); _idProvider = idProvider ?? throw new ArgumentNullException(nameof(idProvider)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); }
public FTPFileController(IFTPEntryRepo entryRepo, IFTPPathRepo pathRepo, IEntrySaverService treeLookerService, IIdProvider idProvider, ILoggerService logger, IArchiveService archiveService) { _entryRepo = entryRepo ?? throw new ArgumentNullException(nameof(entryRepo)); _pathRepo = pathRepo ?? throw new ArgumentNullException(nameof(pathRepo)); _treeSaverService = treeLookerService ?? throw new ArgumentNullException(nameof(treeLookerService)); _idProvider = idProvider ?? throw new ArgumentNullException(nameof(idProvider)); _logger = logger ?? throw new ArgumentNullException(nameof(logger)); _archiveService = archiveService ?? throw new ArgumentNullException(nameof(archiveService)); }
public ArchiveService(IFTPEntryRepo repo) { _repo = repo ?? throw new ArgumentNullException(nameof(repo)); }