public UrlCollectorService(ISaver saver, IDownloader downloader, ICleaner cleaner) { this.saveIntoDatabaseService = new SaveIntoDatabaseService(saver); this.deleteFileService = new DeleteFileService(cleaner); this.parsePageService = new ParsePageService(this.saveIntoDatabaseService, this.deleteFileService); this.downloadPageService = new DownloadPageService(downloader); this.multyIterationID = 0; this.iterationID = 0; }
public ParsePageService(SaveIntoDatabaseService saveIntoDatabaseService, DeleteFileService deleteFileService) { this.saveIntoDatabaseService = saveIntoDatabaseService; this.deleteFileService = deleteFileService; this.urls = new List <string>(); }