public FileDownloader(AppSettings settings, CancellationToken ct, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService) { this.settings = settings; this.ct = ct; this.webRequestFactory = webRequestFactory; this.cookieService = cookieService; }
public ModuleController( Lazy <ShellService> shellService, IEnvironmentService environmentService, IConfirmTumblrPrivacyConsent confirmTumblrPrivacyConsent, ISettingsProvider settingsProvider, ISharedCookieService cookieService, Lazy <ManagerController> managerController, Lazy <QueueController> queueController, Lazy <DetailsController> detailsController, Lazy <CrawlerController> crawlerController, Lazy <ShellViewModel> shellViewModel, IApplicationUpdateService applicationUpdateService) { _shellService = shellService; _environmentService = environmentService; _confirmTumblrPrivacyConsent = confirmTumblrPrivacyConsent; _settingsProvider = settingsProvider; _cookieService = cookieService; _detailsController = detailsController; _managerController = managerController; _queueController = queueController; _crawlerController = crawlerController; _shellViewModel = shellViewModel; _queueManager = new QueueManager(); _applicationUpdateService = applicationUpdateService; }
public ModuleController( Lazy <ShellService> shellService, IEnvironmentService environmentService, ISettingsProvider settingsProvider, ISharedCookieService cookieService, Lazy <ManagerController> managerController, Lazy <QueueController> queueController, Lazy <DetailsController> detailsController, Lazy <CrawlerController> crawlerController, Lazy <ShellViewModel> shellViewModel, IApplicationUpdateService applicationUpdateService, ILogService logService, Lazy <IMessageService> messageService) { _shellService = shellService; _environmentService = environmentService; _settingsProvider = settingsProvider; _cookieService = cookieService; _detailsController = detailsController; _managerController = managerController; _queueController = queueController; _crawlerController = crawlerController; _shellViewModel = shellViewModel; _queueManager = new QueueManager(); _applicationUpdateService = applicationUpdateService; _logService = logService; _messageService = messageService; }
public ConfirmTumblrPrivacyConsent(IShellService shellService, ISharedCookieService cookieService, IWebRequestFactory webRequestFactory) { this.webRequestFactory = webRequestFactory; this.cookieService = cookieService; this.shellService = shellService; }
public TumblrBlogDetector(IShellService shellService, ISharedCookieService cookieService, IWebRequestFactory webRequestFactory) { this.webRequestFactory = webRequestFactory; this.cookieService = cookieService; this.shellService = shellService; }
public TumblrLikedByCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, IPostQueue <TumblrPost> postQueue, IBlog blog) : base(shellService, crawlerService, ct, progress, webRequestFactory, cookieService, postQueue, blog) { this.downloader = downloader; this.pt = pt; }
internal CrawlerFactory(ICrawlerService crawlerService, IManagerService managerService, ShellService shellService, ISharedCookieService cookieService) { this.crawlerService = crawlerService; this.managerService = managerService; this.shellService = shellService; this.cookieService = cookieService; settings = shellService.Settings; }
protected AbstractCrawler(IShellService shellService, CancellationToken ct, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IPostQueue <TumblrPost> postQueue, IBlog blog) { this.shellService = shellService; this.webRequestFactory = webRequestFactory; this.cookieService = cookieService; this.postQueue = postQueue; this.blog = blog; this.ct = ct; this.progress = progress; }
protected AbstractCrawler(IShellService shellService, CancellationToken ct, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, BlockingCollection <TumblrPost> producerConsumerCollection, IBlog blog) { this.shellService = shellService; this.webRequestFactory = webRequestFactory; this.cookieService = cookieService; this.producerConsumerCollection = producerConsumerCollection; this.blog = blog; this.ct = ct; this.progress = progress; }
public TumblrTagSearchCrawler(IShellService shellService, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IMixtapeParser mixtapeParser, IUguuParser uguuParser, ISafeMoeParser safemoeParser, ILoliSafeParser lolisafeParser, ICatBoxParser catboxParser, IPostQueue <TumblrPost> postQueue, IBlog blog, IProgress <DownloadProgress> progress, PauseToken pt, CancellationToken ct) : base(shellService, crawlerService, webRequestFactory, cookieService, tumblrParser, imgurParser, gfycatParser, webmshareParser, mixtapeParser, uguuParser, safemoeParser, lolisafeParser, catboxParser, postQueue, blog, progress, pt, ct) { this.downloader = downloader; }
public TumblrLikedByCrawler(IShellService shellService, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IUguuParser uguuParser, ICatBoxParser catboxParser, IPostQueue <AbstractPost> postQueue, IBlog blog, IProgress <DownloadProgress> progress, PauseToken pt, CancellationToken ct) : base(shellService, crawlerService, webRequestFactory, cookieService, tumblrParser, imgurParser, gfycatParser, webmshareParser, uguuParser, catboxParser, postQueue, blog, downloader, null, progress, pt, ct) { this.downloader = downloader; }
public TwitterCrawler(IShellService shellService, ICrawlerService crawlerService, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IPostQueue <AbstractPost> postQueue, IPostQueue <CrawlerData <Tweet> > jsonQueue, IBlog blog, IDownloader downloader, ICrawlerDataDownloader crawlerDataDownloader, PauseToken pt, CancellationToken ct) : base(shellService, crawlerService, progress, webRequestFactory, cookieService, postQueue, blog, downloader, pt, ct) { this.downloader = downloader; this.downloader.ChangeCancellationToken(Ct); this.jsonQueue = jsonQueue; this.crawlerDataDownloader = crawlerDataDownloader; this.crawlerDataDownloader.ChangeCancellationToken(Ct); }
protected AbstractCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, ISharedCookieService cookieService, IDownloader downloader, BlockingCollection <TumblrPost> producerConsumerCollection, IBlog blog) { this.shellService = shellService; this.crawlerService = crawlerService; this.cookieService = cookieService; this.downloader = downloader; this.producerConsumerCollection = producerConsumerCollection; this.blog = blog; this.ct = ct; this.pt = pt; this.progress = progress; }
public TumblrHiddenCrawler(IShellService shellService, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, ICrawlerDataDownloader crawlerDataDownloader, ITumblrToTextParser <Post> tumblrJsonParser, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IUguuParser uguuParser, ICatBoxParser catboxParser, IPostQueue <AbstractPost> postQueue, IPostQueue <CrawlerData <Post> > jsonQueue, IBlog blog, IProgress <DownloadProgress> progress, PauseToken pt, CancellationToken ct) : base(shellService, crawlerService, webRequestFactory, cookieService, tumblrParser, imgurParser, gfycatParser, webmshareParser, uguuParser, catboxParser, postQueue, blog, downloader, crawlerDataDownloader, progress, pt, ct) { this.downloader = downloader; this.tumblrJsonParser = tumblrJsonParser; this.jsonQueue = jsonQueue; }
protected AbstractCrawler(IShellService shellService, ICrawlerService crawlerService, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IPostQueue <TumblrPost> postQueue, IBlog blog, PauseToken pt, CancellationToken ct) { ShellService = shellService; CrawlerService = crawlerService; WebRequestFactory = webRequestFactory; CookieService = cookieService; PostQueue = postQueue; Blog = blog; Progress = progress; Pt = pt; Ct = ct; }
public TumblrBlogCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, ICrawlerDataDownloader crawlerDataDownloader, ITumblrToTextParser <Post> tumblrJsonParser, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IMixtapeParser mixtapeParser, IUguuParser uguuParser, ISafeMoeParser safemoeParser, ILoliSafeParser lolisafeParser, ICatBoxParser catboxParser, IPostQueue <TumblrPost> postQueue, IPostQueue <TumblrCrawlerData <Post> > jsonQueue, IBlog blog) : base(shellService, crawlerService, ct, pt, progress, webRequestFactory, cookieService, tumblrParser, imgurParser, gfycatParser, webmshareParser, mixtapeParser, uguuParser, safemoeParser, lolisafeParser, catboxParser, postQueue, blog) { this.downloader = downloader; this.tumblrJsonParser = tumblrJsonParser; this.jsonQueue = jsonQueue; this.crawlerDataDownloader = crawlerDataDownloader; }
protected AbstractTumblrCrawler(IShellService shellService, ICrawlerService crawlerService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IMixtapeParser mixtapeParser, IUguuParser uguuParser, ISafeMoeParser safemoeParser, ILoliSafeParser lolisafeParser, ICatBoxParser catboxParser, IPostQueue <TumblrPost> postQueue, IBlog blog) : base(shellService, crawlerService, ct, pt, progress, webRequestFactory, cookieService, postQueue, blog) { this.tumblrParser = tumblrParser; this.imgurParser = imgurParser; this.gfycatParser = gfycatParser; this.webmshareParser = webmshareParser; this.mixtapeParser = mixtapeParser; this.uguuParser = uguuParser; this.safemoeParser = safemoeParser; this.lolisafeParser = lolisafeParser; this.catboxParser = catboxParser; }
protected AbstractCrawler(IShellService shellService, ICrawlerService crawlerService, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IPostQueue <AbstractPost> postQueue, IBlog blog, IDownloader downloader, PauseToken pt, CancellationToken ct) { ShellService = shellService; CrawlerService = crawlerService; WebRequestFactory = webRequestFactory; CookieService = cookieService; PostQueue = postQueue; Blog = blog; Downloader = downloader; Progress = progress; Pt = pt; // TODO: Find a better way for this construct InterruptionTokenSource = new CancellationTokenSource(); LinkedTokenSource = CancellationTokenSource.CreateLinkedTokenSource(ct, InterruptionTokenSource.Token); Ct = LinkedTokenSource.Token; }
public ModuleController(Lazy <ShellService> shellService, IEnvironmentService environmentService, IConfirmTumblrPrivacyConsent confirmTumblrPrivacyConsent, ISettingsProvider settingsProvider, ISharedCookieService cookieService, Lazy <ManagerController> managerController, Lazy <QueueController> queueController, Lazy <DetailsController> detailsController, Lazy <CrawlerController> crawlerController, Lazy <ShellViewModel> shellViewModel) { this.shellService = shellService; this.environmentService = environmentService; this.confirmTumblrPrivacyConsent = confirmTumblrPrivacyConsent; this.settingsProvider = settingsProvider; this.cookieService = cookieService; this.detailsController = detailsController; this.managerController = managerController; this.queueController = queueController; this.crawlerController = crawlerController; this.shellViewModel = shellViewModel; queueManager = new QueueManager(); }
public TumblrBlogCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, BlockingCollection <TumblrPost> producerConsumerCollection, IBlog blog) : base(shellService, ct, pt, progress, crawlerService, webRequestFactory, cookieService, downloader, producerConsumerCollection, blog) { this.imgurParser = imgurParser; this.gfycatParser = gfycatParser; this.webmshareParser = webmshareParser; }
public TumblrBlogCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, ISharedCookieService cookieService, IDownloader downloader, BlockingCollection <TumblrPost> producerConsumerCollection, IBlog blog) : base(shellService, ct, pt, progress, crawlerService, cookieService, downloader, producerConsumerCollection, blog) { }
public TumblrTagSearchCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, BlockingCollection <TumblrPost> producerConsumerCollection, IBlog blog) : base(shellService, ct, progress, webRequestFactory, cookieService, producerConsumerCollection, blog) { this.downloader = downloader; this.pt = pt; }
public WebRequestFactory(IShellService shellService, ISharedCookieService cookieService, AppSettings settings) { this.shellService = shellService; this.cookieService = cookieService; this.settings = settings; }
protected AbstractTumblrCrawler(IShellService shellService, ICrawlerService crawlerService, CancellationToken ct, IProgress <DownloadProgress> progress, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IPostQueue <TumblrPost> postQueue, IBlog blog) : base(shellService, crawlerService, ct, progress, webRequestFactory, cookieService, postQueue, blog) { }
public TumblrHiddenCrawler(IShellService shellService, CancellationToken ct, PauseToken pt, IProgress <DownloadProgress> progress, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, IDownloader downloader, ICrawlerDataDownloader crawlerDataDownloader, ITumblrToTextParser <Post> tumblrJsonParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IPostQueue <TumblrPost> postQueue, IPostQueue <TumblrCrawlerData <Post> > jsonQueue, IBlog blog) : base(shellService, ct, progress, webRequestFactory, cookieService, postQueue, blog) { this.crawlerService = crawlerService; this.downloader = downloader; this.pt = pt; this.tumblrJsonParser = tumblrJsonParser; this.imgurParser = imgurParser; this.gfycatParser = gfycatParser; this.webmshareParser = webmshareParser; this.jsonQueue = jsonQueue; this.crawlerDataDownloader = crawlerDataDownloader; }
internal CrawlerFactory(ShellService shellService, ISharedCookieService cookieService) { this.settings = shellService.Settings; this.cookieService = cookieService; }
public FileDownloader(AppSettings settings, CancellationToken ct, ISharedCookieService cookieService) { this.settings = settings; this.ct = ct; this.cookieService = cookieService; }
protected AbstractTumblrCrawler(IShellService shellService, ICrawlerService crawlerService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService, ITumblrParser tumblrParser, IImgurParser imgurParser, IGfycatParser gfycatParser, IWebmshareParser webmshareParser, IUguuParser uguuParser, ICatBoxParser catboxParser, IPostQueue <AbstractPost> postQueue, IBlog blog, IDownloader downloader, ICrawlerDataDownloader crawlerDataDownloader, IProgress <DownloadProgress> progress, PauseToken pt, CancellationToken ct) : base(shellService, crawlerService, progress, webRequestFactory, cookieService, postQueue, blog, downloader, pt, ct) { this.crawlerDataDownloader = crawlerDataDownloader; this.crawlerDataDownloader?.ChangeCancellationToken(Ct); this.TumblrParser = tumblrParser; this.ImgurParser = imgurParser; this.GfycatParser = gfycatParser; this.WebmshareParser = webmshareParser; this.UguuParser = uguuParser; this.CatboxParser = catboxParser; }
public LoginService(IShellService shellService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService) { this.shellService = shellService; this.webRequestFactory = webRequestFactory; this.cookieService = cookieService; }
public WebRequestFactory(AppSettings settings, ISharedCookieService cookieService) { this.settings = settings; this.cookieService = cookieService; }