Downloader Class |
Namespace: Mastersign.Bench
The Downloader type exposes the following members.
| Name | Description | |
|---|---|---|
| Downloader |
Initializes a new instance of Downloader with a default configuration,
allowing only sequential downloads.
| |
| Downloader(Int32, NullableSecurityProtocolType) |
Initializes a new instance of Downloader with a configuration,
allowing the given number of parallel downloads.
|
| Name | Description | |
|---|---|---|
| DownloadAttempts |
Gets or sets the number of attempts per download task.
| |
| HttpProxy |
Gets or sets the proxy configuration for HTTP connections.
| |
| HttpsProxy |
Gets or sets the proxy configuration for HTTPS connections.
| |
| IsDisposed |
Checks, whether this instance was disposed, or not.
| |
| IsWorking |
Checks, whether the downloader has queued download tasks, or if it currently does nothing.
|
| Name | Description | |
|---|---|---|
| CancelAll |
Request the downloader to cancel all pending download tasks and to clear the queue.
| |
| Dispose |
Disposes the downloader by cancelling all pending download tasks and freeing all ocupied resource.
| |
| Enqueue |
Enqueues a new download task.
| |
| Equals | (Inherited from Object.) | |
| Finalize | (Inherited from Object.) | |
| GetHashCode | (Inherited from Object.) | |
| GetType | (Inherited from Object.) | |
| MemberwiseClone | (Inherited from Object.) | |
| ToString | (Inherited from Object.) |
| Name | Description | |
|---|---|---|
| DownloadEnded |
This event is fired, when a download ended.
This can mean success or failure.
| |
| DownloadProgress |
This event is fired, when the progress of a running download was updated.
| |
| DownloadStarted |
This event is fired, when a download started.
| |
| IsWorkingChanged |
This event is fired, when the downloader starts with the first download after
doing nothing, or if the downloader finished the last queued download task.
| |
| WorkFinished |
This event is fired, when all queued download tasks have ended.
|