Ejemplo n.º 1
0
 public FileDownloader(AppSettings settings, CancellationToken ct, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService)
 {
     this.settings          = settings;
     this.ct                = ct;
     this.webRequestFactory = webRequestFactory;
     this.cookieService     = cookieService;
 }
Ejemplo n.º 2
0
 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;
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 5
0
 public TumblrBlogDetector(IShellService shellService, ISharedCookieService cookieService,
                           IWebRequestFactory webRequestFactory)
 {
     this.webRequestFactory = webRequestFactory;
     this.cookieService     = cookieService;
     this.shellService      = shellService;
 }
Ejemplo n.º 6
0
 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;
 }
Ejemplo n.º 7
0
 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;
 }
Ejemplo n.º 8
0
 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;
 }
Ejemplo n.º 9
0
 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;
 }
Ejemplo n.º 10
0
 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;
 }
Ejemplo n.º 11
0
 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;
 }
Ejemplo n.º 12
0
 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);
 }
Ejemplo n.º 13
0
 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;
 }
Ejemplo n.º 14
0
 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;
 }
Ejemplo n.º 15
0
 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;
 }
Ejemplo n.º 16
0
 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;
 }
Ejemplo n.º 17
0
 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;
 }
Ejemplo n.º 18
0
 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;
 }
Ejemplo n.º 19
0
 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();
 }
Ejemplo n.º 20
0
 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;
 }
Ejemplo n.º 21
0
 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)
 {
 }
Ejemplo n.º 22
0
 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;
 }
Ejemplo n.º 23
0
 public WebRequestFactory(IShellService shellService, ISharedCookieService cookieService, AppSettings settings)
 {
     this.shellService  = shellService;
     this.cookieService = cookieService;
     this.settings      = settings;
 }
Ejemplo n.º 24
0
 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)
 {
 }
Ejemplo n.º 25
0
 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;
 }
Ejemplo n.º 26
0
 internal CrawlerFactory(ShellService shellService, ISharedCookieService cookieService)
 {
     this.settings      = shellService.Settings;
     this.cookieService = cookieService;
 }
Ejemplo n.º 27
0
 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;
 }
Ejemplo n.º 29
0
 public LoginService(IShellService shellService, IWebRequestFactory webRequestFactory, ISharedCookieService cookieService)
 {
     this.shellService      = shellService;
     this.webRequestFactory = webRequestFactory;
     this.cookieService     = cookieService;
 }
Ejemplo n.º 30
0
 public WebRequestFactory(AppSettings settings, ISharedCookieService cookieService)
 {
     this.settings      = settings;
     this.cookieService = cookieService;
 }