Method | Description | |
---|---|---|
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.
|
Method | Description | |
---|---|---|
OnDownloadCompleted ( |
Raise DownloadCompleted event.
|
|
OnDownloadProgressChanged ( DownloadProgressChangedEventArgs e ) : void |
Raise DownloadProgressChanged event. If the status is Completed, then raise DownloadCompleted event.
|
|
OnStatusChanged ( |
Raise StatusChanged event.
|
Method | Description | |
---|---|---|
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 CheckUrlAndFile ( string &fileName ) : void | ||
fileName | string | |
return | void |
public MultiThreadedWebDownloader ( string url ) : System | ||
url | string | |
return | System |
public MultiThreadedWebDownloader ( string url, int bufferSize, int cacheSize, int bufferCountPerNotification, int maxThreadCount ) : System | ||
url | string | |
bufferSize | int | |
cacheSize | int | |
bufferCountPerNotification | int | |
maxThreadCount | int | |
return | System |
protected OnDownloadCompleted ( |
||
e | ||
return | void |
protected OnDownloadProgressChanged ( DownloadProgressChangedEventArgs e ) : void | ||
e | DownloadProgressChangedEventArgs | |
return | void |
protected OnStatusChanged ( |
||
e | ||
return | void |