HttpDownloadManager class reference

 

 

 

 

Method void AddDownload(object Download)

 

        Add an HttpDownload object to this HttpDownloadManager.

 

        The added object is not removed when the download initiated by

        StartAsync() or StartBlocking() completes, fails or times out.

 

Mthod void RemoveDownload(object Download)

 

        Remove HttpDownload object from the DownloadManager.

 

Method void RemoveAllDownloads()

 

        Remove all HttpDownload object previously added to this HttpDownloadManager.

 

Method void StartAsync()

 

        Start asynchronous download.

 

        This method initiates asynchronous download on all HttpDownload objects

        previously passed via AddDownload() function and returns immediatelly.

        When all downloads complete, fail or time out, DownloadFinished event of

        this object is signaled as well as DownloadEvents of the HttpDownload

        objects.

 

        Note that calling this method when the HttpDownloadManager is already

        waiting for some downloads to finish has no effect.

 

Method void StartBlocking()

 

        Start synchronous download.

 

        This method initiates asynchronous downloads on all HttpDownload objects

        previously passed via AddDownload() functiona and waits till they complete,

        fail or time out. When this happens, DownloadFinished events of this

        object is signaled as well as DownloadEvents of the HttpDownload objects.

 

        Note that calling this method when the HttpDownloadManger is already

        waiting for some downloads (initiated by StartAsync()) has no effect.