November Happy Hour will be moved to Thursday December 5th.

Class JsonWebClient

Inheritance
System.Object
JsonWebClient
Namespace: EPiServer.Licensing.Services
Assembly: EPiServer.Licensing.dll
Version: 11.20.7
Syntax
public class JsonWebClient : WebClient

Constructors

JsonWebClient()

Declaration
public JsonWebClient()

Methods

FromJson<T>(String)

Declaration
public virtual T FromJson<T>(string json)
Parameters
Type Name Description
System.String json
Returns
Type Description
T
Type Parameters
Name Description
T

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 Description
T
Type Parameters
Name Description
T

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 Description
T
Type Parameters
Name Description
T

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 Description
Tout
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
Name Description
T

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