Click or drag to resize

Downloader Class

This class implements a download manager for downloading multiple HTTP(S) resources in parallel and monitoring their progress.
Inheritance Hierarchy
SystemObject
  Mastersign.BenchDownloader

Namespace:  Mastersign.Bench
Assembly:  BenchLib (in BenchLib.dll) Version: 0.22.0.0 (0.22.0.0)
Syntax
public class Downloader : IDisposable

The Downloader type exposes the following members.

Constructors
  NameDescription
Public methodDownloader
Initializes a new instance of Downloader with a default configuration, allowing only sequential downloads.
Public methodDownloader(Int32, NullableSecurityProtocolType)
Initializes a new instance of Downloader with a configuration, allowing the given number of parallel downloads.
Top
Properties
  NameDescription
Public propertyDownloadAttempts
Gets or sets the number of attempts per download task.
Public propertyHttpProxy
Gets or sets the proxy configuration for HTTP connections.
Public propertyHttpsProxy
Gets or sets the proxy configuration for HTTPS connections.
Public propertyIsDisposed
Checks, whether this instance was disposed, or not.
Public propertyIsWorking
Checks, whether the downloader has queued download tasks, or if it currently does nothing.
Top
Methods
  NameDescription
Public methodCancelAll
Request the downloader to cancel all pending download tasks and to clear the queue.
Public methodDispose
Disposes the downloader by cancelling all pending download tasks and freeing all ocupied resource.
Public methodEnqueue
Enqueues a new download task.
Public methodEquals (Inherited from Object.)
Protected methodFinalize (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Protected methodMemberwiseClone (Inherited from Object.)
Public methodToString (Inherited from Object.)
Top
Events
  NameDescription
Public eventDownloadEnded
This event is fired, when a download ended. This can mean success or failure.
Public eventDownloadProgress
This event is fired, when the progress of a running download was updated.
Public eventDownloadStarted
This event is fired, when a download started.
Public eventIsWorkingChanged
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.
Public eventWorkFinished
This event is fired, when all queued download tasks have ended.
Top
See Also