C# Class BiliRanking.Core.Download.DownloaderHelper

Afficher le fichier Open project: SkiTiSu/BiliRanking

Méthodes publiques

Méthode Description
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

Method Details

CheckFileOrCreateFile() public static méthode

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
Résultat void

CheckUrl() public static méthode

Check the URL to download, including whether it supports Range,
public static CheckUrl ( IDownloader downloader ) : string
downloader IDownloader
Résultat string

InitializeHttpWebRequest() public static méthode

public static InitializeHttpWebRequest ( IDownloader downloader ) : HttpWebRequest
downloader IDownloader
Résultat System.Net.HttpWebRequest