DataPlace
HttpFileDownloader Class
CSCS.Core.NetHttpFileDownloader
Provides for downloading a file using multiple streams with recovery and resume capabilities.
Declaration Syntax
C#
public class HttpFileDownloader : IDisposable
Members
All MembersConstructorsMethodsPropertiesEvents



IconMemberDescription
HttpFileDownloader(Uri, String)
Creates a new instance, using the default number of connections (3).

HttpFileDownloader(Uri, String, Int32)
Creates a new instance, using a specified number of connections.

BufferSize
Gets the size of the receive buffer, in bytes.

BytesReceived
Gets the number of bytes received.

Cancel()()()
Signals any asynchronous operations to cancel.

Completed
Occurs when the download is complete.

ConnectionCount
Gets the number of connections to use.

DestinationFile
Gets the full path to the destination file.

Dispose()()()
Releases resources.

Dispose(Boolean)
Download()()()
Downloads the file.

DownloadAsync()()()
Downloads the file asynchronously. This method will start the download and return immediately. Events will be raised to allow you to monitor progress.

Equals(Object)
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Error
Gets the error that occurred, or null if none.

Finalize()()() (Overrides Object.Finalize()()().)
GetHashCode()()()
Serves as a hash function for a particular type.
(Inherited from Object.)
GetType()()()
Gets the Type of the current instance.
(Inherited from Object.)
MemberwiseClone()()()
Creates a shallow copy of the current Object.
(Inherited from Object.)
OnCompleted(FileDownloaderEventArgs)
Raises the Completed event.

OnProgressChanged(FileDownloaderEventArgs)
Raises the ProgressChanged event (asynchronously).

ProgressChanged
Occurs when download progress is made. (This event is raised asynchronously.)

ToString()()()
Returns a String that represents the current Object.
(Inherited from Object.)
TotalBytes
Gets the total number of bytes to receive.

Url
Gets the URL of the file to download.

Inheritance Hierarchy
Object
HttpFileDownloader

Assembly: CS.Core.Standard (Module: CS.Core.Standard) Version: 1.0.3271.19813