C# 클래스 NntpClient.Queue.DownloadQueue

Provides a queue for downloading files in an NZB.
파일 보기 프로젝트 열기: strider-/NntpClient

공개 메소드들

메소드 설명
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