C# Класс NntpClient.Queue.DownloadQueue

Provides a queue for downloading files in an NZB.
Показать файл Открыть проект

Открытые методы

Метод Описание
Complete ( Job job, Article article ) : void

Marks a job as complete, requires the completed article.

DownloadQueue ( NzbDocument nzb, string cachePath, string completedPath ) : System

Initializes the queue with an NZB, a directory to store temp files, and a directory to store completed files.

Fail ( Job job ) : void

Marks a job as failed

Pop ( ) : Job

Returns the next job to be processed, or null if there are no jobs left.

Приватные методы

Метод Описание
AssembleFile ( int FileId ) : void
FileDownloaded ( int FileId ) : bool

Описание методов

Complete() публичный Метод

Marks a job as complete, requires the completed article.
public Complete ( Job job, Article article ) : void
job Job Job to complete
article Article Article of the completed job
Результат void

DownloadQueue() публичный Метод

Initializes the queue with an NZB, a directory to store temp files, and a directory to store completed files.
public DownloadQueue ( NzbDocument nzb, string cachePath, string completedPath ) : System
nzb NntpClient.Nzb.NzbDocument NzbDocument to process
cachePath string Location to store file segments until they can be assembled
completedPath string Location to store completed files.
Результат System

Fail() публичный Метод

Marks a job as failed
public Fail ( Job job ) : void
job Job
Результат void

Pop() публичный Метод

Returns the next job to be processed, or null if there are no jobs left.
public Pop ( ) : Job
Результат Job