C# Class nHydrate.Generator.Common.Util.HTTPHelper

Mostra file Open project: nHydrate/nHydrate

Public Methods

Method Description
Download ( string url, string localFile ) : bool

Given a file URL, this method will download it and save it as the specified local file name

Download ( string url ) : string

Given a file URL, this method will download it and return the load disk file

Protected Methods

Method Description
OnProgress ( ProgressEventArgs e ) : void

Private Methods

Method Description
UpdateProgress ( System.Int64 BytesRead, System.Int64 TotalBytes ) : void

Method Details

Download() public method

Given a file URL, this method will download it and save it as the specified local file name
public Download ( string url, string localFile ) : bool
url string A URL of a file to download
localFile string The local filename to use when saving the file locally
return bool

Download() public method

Given a file URL, this method will download it and return the load disk file
public Download ( string url ) : string
url string A URL of a file to download
return string

OnProgress() protected method

protected OnProgress ( ProgressEventArgs e ) : void
e nHydrate.Generator.Common.EventArgs.ProgressEventArgs
return void