메소드 | 설명 | |
---|---|---|
Cancel ( ) : void |
Cancels the task.
|
|
Dispose ( ) : void |
Halts the file download. After being disposed, that is no guarantee that the task's status will be correct. Further interaction with the object is undefined. |
|
Download ( |
Downloads the speificed file to the specified location. This method starts the download, and waits for it to end. If the given p_strSavePath already exists, an attempt will be made to resume the download. If the pre-existing file is not a partial download, or the download cannot be resumed, the file will be overwritten. |
|
DownloadAsync ( List |
Downloads the speificed file to the specified location. This method starts the download and returns. If the given p_strSavePath already exists, an attempt will be made to resume the download. If the pre-existing file is not a partial download, or the download cannot be resumed, the file will be overwritten. |
|
DownloadAsync ( |
Downloads the speificed file to the specified location. This method starts the download and returns. If the given p_strSavePath already exists, an attempt will be made to resume the download. If the pre-existing file is not a partial download, or the download cannot be resumed, the file will be overwritten. |
|
FileDownloadTask ( IModRepository p_mmrModRepository, |
A simple constructor that initializes the object with the given values.
|
|
Pause ( ) : void |
Pauses the task.
|
|
Queue ( ) : void |
Queues the task.
|
|
Resume ( ) : void |
Resumes the task.
|
메소드 | 설명 | |
---|---|---|
Downloader_DownloadComplete ( object sender, |
Handles the FileDownloader.DownloadComplete event of the file downloader. This stops the updating of the progress properties. |
|
Updater_Elapsed ( object sender, System.Timers.ElapsedEventArgs e ) : void |
Handles the System.Timers.Timer.Elapsed event of the time that controls the updating of the progress properties. This updates the progress properties. |
public Download ( |
||
p_uriURL | The URL of the file to download. | |
p_dicCookies | string>.Dictionary | A list of cookies that should be sent in the request to download the file. |
p_strSavePath | string | The path to which to save the file.
/// If |
p_booUseDefaultFileName | bool | Whether to use the file name suggested by the server. |
리턴 | void |
public DownloadAsync ( List |
||
p_uriURL | List |
The URL list of the file to download. |
p_dicCookies | string>.Dictionary | A list of cookies that should be sent in the request to download the file. |
p_strSavePath | string | The path to which to save the file.
/// If |
p_booUseDefaultFileName | bool | Whether to use the file name suggested by the server. |
리턴 | void |
public DownloadAsync ( |
||
p_uriURL | The URL of the file to download. | |
p_dicCookies | string>.Dictionary | A list of cookies that should be sent in the request to download the file. |
p_strSavePath | string | The path to which to save the file.
/// If |
p_booUseDefaultFileName | bool | Whether to use the file name suggested by the server. |
리턴 | void |
public FileDownloadTask ( IModRepository p_mmrModRepository, |
||
p_mmrModRepository | IModRepository | |
p_intMaxConnections | The maximum number of connections to use to download the file. | |
p_intMinBlockSize | The minimum block size that should be downloaded at once. This should /// ideally be some mulitple of the available bandwidth. | |
p_strUserAgent | string | The current User Agent. |
리턴 | System |