Ejemplo n.º 1
0
 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;
 }
Ejemplo n.º 2
0
 public ParsePageService(SaveIntoDatabaseService saveIntoDatabaseService, DeleteFileService deleteFileService)
 {
     this.saveIntoDatabaseService = saveIntoDatabaseService;
     this.deleteFileService       = deleteFileService;
     this.urls = new List <string>();
 }