Метод | Описание | |
---|---|---|
BeginDownload ( ) : void |
Start to download.
|
|
BeginResume ( ) : void |
Resume the download.
|
|
Cancel ( ) : void |
Cancel the download
|
|
CheckUrl ( string &fileName ) : void |
Check the Uri to find its size, and whether it supports "Pause".
|
|
CheckUrlAndFile ( string &fileName ) : void | ||
Download ( ) : void |
Start to download.
|
|
MultiThreadedWebDownloader ( string url ) : System |
Download the whole file. The default buffer size is 1KB, memory cache is 1MB, buffer count per notification is 64, threads count is the double of logic processors count.
|
|
MultiThreadedWebDownloader ( string url, int bufferSize, int cacheSize, int bufferCountPerNotification, int maxThreadCount ) : System | ||
Pause ( ) : void |
Pause the download.
|
|
Resume ( ) : void |
Resume the download.
|
Метод | Описание | |
---|---|---|
OnDownloadCompleted ( |
Raise DownloadCompleted event.
|
|
OnDownloadProgressChanged ( DownloadProgressChangedEventArgs e ) : void |
Raise DownloadProgressChanged event. If the status is Completed, then raise DownloadCompleted event.
|
|
OnStatusChanged ( |
Raise StatusChanged event.
|
Метод | Описание | |
---|---|---|
CheckFileOrCreateFile ( ) : void |
Check whether the destination file exists. If not, create a file with the same size as the file to be downloaded.
|
|
DownloadInternal ( object obj ) : void | ||
EnsurePropertyValid ( ) : void | ||
client_DownloadCompleted ( object sender, |
Handle the DownloadCompleted event of all the HttpDownloadClients.
|
|
client_DownloadProgressChanged ( object sender, DownloadProgressChangedEventArgs e ) : void |
Handle the DownloadProgressChanged event of all the HttpDownloadClients, and calculate the download speed.
|
|
client_StatusChanged ( object sender, |
Handle the StatusChanged event of all the HttpDownloadClients.
|
public CheckUrl ( string &fileName ) : void | ||
fileName | string | |
Результат | void |
public CheckUrlAndFile ( string &fileName ) : void | ||
fileName | string | |
Результат | void |
public MultiThreadedWebDownloader ( string url ) : System | ||
url | string | |
Результат | System |
public MultiThreadedWebDownloader ( string url, int bufferSize, int cacheSize, int bufferCountPerNotification, int maxThreadCount ) : System | ||
url | string | |
bufferSize | int | |
cacheSize | int | |
bufferCountPerNotification | int | |
maxThreadCount | int | |
Результат | System |
protected OnDownloadCompleted ( |
||
e | ||
Результат | void |
protected OnDownloadProgressChanged ( DownloadProgressChangedEventArgs e ) : void | ||
e | DownloadProgressChangedEventArgs | |
Результат | void |
protected OnStatusChanged ( |
||
e | ||
Результат | void |