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

Afficher le fichier Open project: nHydrate/nHydrate

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
OnProgress ( ProgressEventArgs e ) : void

Private Methods

Méthode Description
UpdateProgress ( System.Int64 BytesRead, System.Int64 TotalBytes ) : void

Method Details

Download() public méthode

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
Résultat bool

Download() public méthode

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
Résultat string

OnProgress() protected méthode

protected OnProgress ( ProgressEventArgs e ) : void
e nHydrate.Generator.Common.EventArgs.ProgressEventArgs
Résultat void