C# Класс NanoByte.Common.Net.DownloadTask

Abstract base class for tasks that download a file from the web.
Наследование: NanoByte.Common.Tasks.TaskBase
Показать файл Открыть проект

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