C# Class NanoByte.Common.Net.DownloadTask

Abstract base class for tasks that download a file from the web.
Inheritance: NanoByte.Common.Tasks.TaskBase
Afficher le fichier Open project: nano-byte/common

Private Properties

Свойство Type Description
CreateTargetStream Stream
ReadHeader void

Méthodes protégées

Méthode Description
DownloadTask ( Uri source, long bytesTotal = -1 ) : System

Creates a new download task.

Execute ( ) : void

Private Methods

Méthode Description
CreateTargetStream ( ) : Stream
ReadHeader ( WebResponse response ) : void

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

Method Details

DownloadTask() protected méthode

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.
Résultat System

Execute() protected méthode

protected Execute ( ) : void
Résultat void