Class JsonWebClient
Inheritance
System.Object
JsonWebClient
Assembly: EPiServer.Licensing.dll
Version: 11.20.7
Syntax
public class JsonWebClient : WebClient
Constructors
JsonWebClient()
Declaration
Methods
FromJson<T>(String)
Declaration
public virtual T FromJson<T>(string json)
Parameters
Type |
Name |
Description |
System.String |
json |
|
Returns
Type Parameters
PostJson<T>(String, String)
Declaration
public virtual T PostJson<T>(string url, string data)
where T : ServerResponseBase, new()
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.String |
data |
|
Returns
Type Parameters
PostJson<T>(String, String, String)
Declaration
public virtual T PostJson<T>(string url, string method, string data)
where T : ServerResponseBase, new()
Parameters
Type |
Name |
Description |
System.String |
url |
|
System.String |
method |
|
System.String |
data |
|
Returns
Type Parameters
PostJson<Tout, Tin>(String, Tin)
Declaration
public virtual Tout PostJson<Tout, Tin>(string url, Tin data)
where Tout : ServerResponseBase, new()
Parameters
Type |
Name |
Description |
System.String |
url |
|
Tin |
data |
|
Returns
Type Parameters
Name |
Description |
Tout |
|
Tin |
|
ToJson<T>(T)
Declaration
public virtual string ToJson<T>(T instance)
Parameters
Type |
Name |
Description |
T |
instance |
|
Returns
Type |
Description |
System.String |
|
Type Parameters
Upload(String, String, Byte[])
Declaration
public virtual byte[] Upload(string address, string method, byte[] data)
Parameters
Type |
Name |
Description |
System.String |
address |
|
System.String |
method |
|
System.Byte[] |
data |
|
Returns
Type |
Description |
System.Byte[] |
|
Extension Methods