C# Class Blacker.Scraper.Downloader

Inheritance: IDownloader
Afficher le fichier Open project: blacker-cz/MangaScraper

Méthodes publiques

Méthode Description
Cancel ( ) : void
DownloadChapterAsync ( ISemaphore semaphore, IChapterRecord chapter, string outputFolder, IDownloadFormatProvider formatProvider ) : void
Downloader ( string>.Func pagesResolver, string>.Func imageFinder ) : System
Downloader ( string>.Func pagesResolver, string imageXPath ) : System
Downloader ( string>.IDictionary pages, string>.Func imageFinder ) : System
Downloader ( string>.IDictionary pages, string imageXPath ) : System

Méthodes protégées

Méthode Description
AddTask ( int num = 1 ) : void
GetPercentComplete ( ) : int
GetUniqueFileName ( string directory, int page, string extension ) : string
GetUniqueFileName ( string directory, string page, string extension ) : string
OnDownloadCompleted ( Blacker.Scraper.Events.DownloadCompletedEventArgs eventArgs ) : void
OnDownloadProgressChanged ( Blacker.Scraper.Events.DownloadProgressEventArgs e ) : void
ReportProgress ( int percentComplete, string message ) : void
ReportProgress ( string message ) : void
ResetTasks ( ) : void
TaskDone ( int num = 1 ) : void

Private Methods

Méthode Description
DownloadChapter ( BackgroundWorker backgroundWorker, DoWorkEventArgs e, IChapterRecord chapter, string outputFolder, IDownloadFormatProvider formatProvider ) : void
GetPageImageUrl ( string imageXPath, string pageUrl ) : string
_backgroundWorker_DoWork ( object sender, DoWorkEventArgs e ) : void
_backgroundWorker_ProgressChanged ( object sender, ProgressChangedEventArgs e ) : void
_backgroundWorker_RunWorkerCompleted ( object sender, RunWorkerCompletedEventArgs e ) : void

Method Details

AddTask() protected méthode

protected AddTask ( int num = 1 ) : void
num int
Résultat void

Cancel() public méthode

public Cancel ( ) : void
Résultat void

DownloadChapterAsync() public méthode

public DownloadChapterAsync ( ISemaphore semaphore, IChapterRecord chapter, string outputFolder, IDownloadFormatProvider formatProvider ) : void
semaphore ISemaphore
chapter IChapterRecord
outputFolder string
formatProvider IDownloadFormatProvider
Résultat void

Downloader() public méthode

public Downloader ( string>.Func pagesResolver, string>.Func imageFinder ) : System
pagesResolver string>.Func
imageFinder string>.Func
Résultat System

Downloader() public méthode

public Downloader ( string>.Func pagesResolver, string imageXPath ) : System
pagesResolver string>.Func
imageXPath string
Résultat System

Downloader() public méthode

public Downloader ( string>.IDictionary pages, string>.Func imageFinder ) : System
pages string>.IDictionary
imageFinder string>.Func
Résultat System

Downloader() public méthode

public Downloader ( string>.IDictionary pages, string imageXPath ) : System
pages string>.IDictionary
imageXPath string
Résultat System

GetPercentComplete() protected méthode

protected GetPercentComplete ( ) : int
Résultat int

GetUniqueFileName() protected méthode

protected GetUniqueFileName ( string directory, int page, string extension ) : string
directory string
page int
extension string
Résultat string

GetUniqueFileName() protected méthode

protected GetUniqueFileName ( string directory, string page, string extension ) : string
directory string
page string
extension string
Résultat string

OnDownloadCompleted() protected méthode

protected OnDownloadCompleted ( Blacker.Scraper.Events.DownloadCompletedEventArgs eventArgs ) : void
eventArgs Blacker.Scraper.Events.DownloadCompletedEventArgs
Résultat void

OnDownloadProgressChanged() protected méthode

protected OnDownloadProgressChanged ( Blacker.Scraper.Events.DownloadProgressEventArgs e ) : void
e Blacker.Scraper.Events.DownloadProgressEventArgs
Résultat void

ReportProgress() protected méthode

protected ReportProgress ( int percentComplete, string message ) : void
percentComplete int
message string
Résultat void

ReportProgress() protected méthode

protected ReportProgress ( string message ) : void
message string
Résultat void

ResetTasks() protected méthode

protected ResetTasks ( ) : void
Résultat void

TaskDone() protected méthode

protected TaskDone ( int num = 1 ) : void
num int
Résultat void