Class WebClient
Facilitates working with external services provided via HTTP
Inheritance
System.Object
WebClient
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.ToString()
Assembly: NFX.Web.dll
Syntax
public static class WebClient
Methods
DoRequest(Action<WebClient>, WebClient.RequestParams)
Declaration
public static void DoRequest(Action<WebClient> actor, WebClient.RequestParams request)
Parameters
DoRequest(Func<WebClient, Task>, WebClient.RequestParams)
Declaration
public static Task DoRequest(Func<WebClient, Task> actor, WebClient.RequestParams request)
Parameters
Type |
Name |
Description |
System.Func<System.Net.WebClient, System.Threading.Tasks.Task> |
actor |
|
WebClient.RequestParams |
request |
|
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
DoRequest<T>(Func<WebClient, T>, WebClient.RequestParams)
Declaration
public static T DoRequest<T>(Func<WebClient, T> actor, WebClient.RequestParams request)
Parameters
Returns
Type Parameters
DoRequest<T>(Func<WebClient, Task<T>>, WebClient.RequestParams)
Declaration
public static Task<T> DoRequest<T>(Func<WebClient, Task<T>> actor, WebClient.RequestParams request)
Parameters
Type |
Name |
Description |
System.Func<System.Net.WebClient, System.Threading.Tasks.Task<T>> |
actor |
|
WebClient.RequestParams |
request |
|
Returns
Type |
Description |
System.Threading.Tasks.Task<T> |
|
Type Parameters
GetData(String, WebClient.RequestParams)
Declaration
public static byte[] GetData(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
GetData(String, WebClient.RequestParams, out String)
Declaration
public static byte[] GetData(string uri, WebClient.RequestParams request, out string contentType)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
GetData(Uri, WebClient.RequestParams)
Declaration
public static byte[] GetData(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
GetData(Uri, WebClient.RequestParams, out String)
Declaration
public static byte[] GetData(Uri uri, WebClient.RequestParams request, out string contentType)
Parameters
Returns
Type |
Description |
System.Byte[] |
|
GetDataAsync(String, WebClient.RequestParams)
Declaration
public static Task<byte[]> GetDataAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Byte[]> |
|
GetDataAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<byte[]> GetDataAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Byte[]> |
|
GetDataAsyncWithContentType(String, WebClient.RequestParams)
Declaration
public static Task<Tuple<byte[], string>> GetDataAsyncWithContentType(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Tuple<System.Byte[], System.String>> |
|
GetDataAsyncWithContentType(Uri, WebClient.RequestParams)
Declaration
public static Task<Tuple<byte[], string>> GetDataAsyncWithContentType(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Tuple<System.Byte[], System.String>> |
|
GetFile(String, WebClient.RequestParams, String)
Declaration
public static void GetFile(string uri, WebClient.RequestParams request, string file)
Parameters
GetFile(Uri, WebClient.RequestParams, String)
Declaration
public static void GetFile(Uri uri, WebClient.RequestParams request, string file)
Parameters
GetFileAsync(String, WebClient.RequestParams, String)
Declaration
public static Task GetFileAsync(string uri, WebClient.RequestParams request, string file)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
GetFileAsync(Uri, WebClient.RequestParams, String)
Declaration
public static Task GetFileAsync(Uri uri, WebClient.RequestParams request, string file)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task |
|
GetImage(String, WebClient.RequestParams)
Declaration
public static Image GetImage(string uri, WebClient.RequestParams request)
Parameters
Returns
GetImage(Uri, WebClient.RequestParams)
Declaration
public static Image GetImage(Uri uri, WebClient.RequestParams request)
Parameters
Returns
GetImageAsync(String, WebClient.RequestParams)
Declaration
public static Task<Image> GetImageAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Image> |
|
GetImageAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<Image> GetImageAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<Image> |
|
GetJson(String, WebClient.RequestParams)
Declaration
public static JSONDataMap GetJson(string uri, WebClient.RequestParams request)
Parameters
Returns
GetJson(Uri, WebClient.RequestParams)
Declaration
public static JSONDataMap GetJson(Uri uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonArray(String, WebClient.RequestParams)
Declaration
public static JSONDataArray GetJsonArray(string uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonArray(Uri, WebClient.RequestParams)
Declaration
public static JSONDataArray GetJsonArray(Uri uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonArrayAsync(String, WebClient.RequestParams)
Declaration
public static Task<JSONDataArray> GetJsonArrayAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonArrayAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<JSONDataArray> GetJsonArrayAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonAsDynamic(String, WebClient.RequestParams)
Declaration
public static JSONDynamicObject GetJsonAsDynamic(string uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonAsDynamic(Uri, WebClient.RequestParams)
Declaration
public static JSONDynamicObject GetJsonAsDynamic(Uri uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonAsDynamicAsync(String, WebClient.RequestParams)
Declaration
public static Task<JSONDynamicObject> GetJsonAsDynamicAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonAsDynamicAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<JSONDynamicObject> GetJsonAsDynamicAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
GetJsonAsync(String, WebClient.RequestParams)
Declaration
public static Task<JSONDataMap> GetJsonAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<JSONDataMap> |
|
GetJsonAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<JSONDataMap> GetJsonAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<JSONDataMap> |
|
GetString(String, WebClient.RequestParams)
Declaration
public static string GetString(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.String |
|
GetString(Uri, WebClient.RequestParams)
Declaration
public static string GetString(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.String |
|
GetStringAsync(String, WebClient.RequestParams)
Declaration
public static Task<string> GetStringAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
GetStringAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<string> GetStringAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.String> |
|
GetValueMap(String, WebClient.RequestParams)
Declaration
public static JSONDataMap GetValueMap(string uri, WebClient.RequestParams request)
Parameters
Returns
GetValueMap(Uri, WebClient.RequestParams)
Declaration
public static JSONDataMap GetValueMap(Uri uri, WebClient.RequestParams request)
Parameters
Returns
GetValueMapAsync(String, WebClient.RequestParams)
Declaration
public static Task<JSONDataMap> GetValueMapAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<JSONDataMap> |
|
GetValueMapAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<JSONDataMap> GetValueMapAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<JSONDataMap> |
|
GetXML(String, WebClient.RequestParams)
Declaration
public static XDocument GetXML(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Xml.Linq.XDocument |
|
GetXML(Uri, WebClient.RequestParams)
Declaration
public static XDocument GetXML(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Xml.Linq.XDocument |
|
GetXMLAsync(String, WebClient.RequestParams)
Declaration
public static Task<XDocument> GetXMLAsync(string uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Xml.Linq.XDocument> |
|
GetXMLAsync(Uri, WebClient.RequestParams)
Declaration
public static Task<XDocument> GetXMLAsync(Uri uri, WebClient.RequestParams request)
Parameters
Returns
Type |
Description |
System.Threading.Tasks.Task<System.Xml.Linq.XDocument> |
|