C# 클래스 NanoByte.Common.Net.DownloadTask

Abstract base class for tasks that download a file from the web.
상속: NanoByte.Common.Tasks.TaskBase
파일 보기 프로젝트 열기: nano-byte/common

Private Properties

프로퍼티 타입 설명
CreateTargetStream Stream
ReadHeader void

보호된 메소드들

메소드 설명
DownloadTask ( Uri source, long bytesTotal = -1 ) : System

Creates a new download task.

Execute ( ) : void

비공개 메소드들

메소드 설명
CreateTargetStream ( ) : Stream
ReadHeader ( WebResponse response ) : void

Reads the header information in the response and stores it the object properties.

메소드 상세

DownloadTask() 보호된 메소드

Creates a new download task.
protected DownloadTask ( Uri source, long bytesTotal = -1 ) : System
source System.Uri The URL the file is to be downloaded from.
bytesTotal long The number of bytes the file to be downloaded is long. The file will be rejected if it does not have this length. -1 if the size is unknown.
리턴 System

Execute() 보호된 메소드

protected Execute ( ) : void
리턴 void