C# Class EpLibrary.cs.WebRequestEx

WebRequestEx class
Datei anzeigen Open project: juhgiyo/EpLibrary.cs

Public Methods

Method Description
DownloadDataAsync ( String uri, Action callbackFunc ) : void

Download data from given uri and call callback

DownloadFile ( String uri, String filepath, int waitTimeInMilliSec = Timeout.Infinite ) : void

Download file from given uri to given filepath

DownloadFileAsync ( String uri, String filepath, Action callbackFunc ) : void

Download file from given uri to given filepath and call callback

GetResponse ( String uri, ICredentials credentials = null, int waitTimeInMilliSec = Timeout.Infinite ) : String

Get response from the given uri with given credentials

GetResponseAsync ( String uri, Action callbackFunc, ICredentials credentials = null ) : void

Get response from the given uri with given credentials

Method Details

DownloadDataAsync() public static method

Download data from given uri and call callback
public static DownloadDataAsync ( String uri, Action callbackFunc ) : void
uri String uri
callbackFunc Action callback function
return void

DownloadFile() public static method

Download file from given uri to given filepath
public static DownloadFile ( String uri, String filepath, int waitTimeInMilliSec = Timeout.Infinite ) : void
uri String uri
filepath String filepath
waitTimeInMilliSec int wait time in milliseconds
return void

DownloadFileAsync() public static method

Download file from given uri to given filepath and call callback
public static DownloadFileAsync ( String uri, String filepath, Action callbackFunc ) : void
uri String uril
filepath String filepath
callbackFunc Action callback function
return void

GetResponse() public static method

Get response from the given uri with given credentials
public static GetResponse ( String uri, ICredentials credentials = null, int waitTimeInMilliSec = Timeout.Infinite ) : String
uri String uri
credentials ICredentials credentials
waitTimeInMilliSec int wait time in milliseconds
return String

GetResponseAsync() public static method

Get response from the given uri with given credentials
public static GetResponseAsync ( String uri, Action callbackFunc, ICredentials credentials = null ) : void
uri String uri
callbackFunc Action callback function
credentials ICredentials credentials
return void