C# Класс BiliRanking.Core.Download.DownloaderHelper

Показать файл Открыть проект

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

Метод Описание
CheckFileOrCreateFile ( IDownloader downloader, object fileLocker ) : void

Check whether the destination file exists. If not, create a file with the same size as the file to be downloaded.

CheckUrl ( IDownloader downloader ) : string

Check the URL to download, including whether it supports Range,

InitializeHttpWebRequest ( IDownloader downloader ) : HttpWebRequest

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

CheckFileOrCreateFile() публичный статический Метод

Check whether the destination file exists. If not, create a file with the same size as the file to be downloaded.
public static CheckFileOrCreateFile ( IDownloader downloader, object fileLocker ) : void
downloader IDownloader
fileLocker object
Результат void

CheckUrl() публичный статический Метод

Check the URL to download, including whether it supports Range,
public static CheckUrl ( IDownloader downloader ) : string
downloader IDownloader
Результат string

InitializeHttpWebRequest() публичный статический Метод

public static InitializeHttpWebRequest ( IDownloader downloader ) : HttpWebRequest
downloader IDownloader
Результат System.Net.HttpWebRequest