메소드 | 설명 | |
---|---|---|
GetPerRequestFormatterInstance ( |
Returns a specialized instance of the T:System.Net.Http.Formatting.MediaTypeFormatter that can format a response for the given parameters.
|
|
JsonMediaTypeFormatter ( IContractResolver contractResolver ) : System |
Constructor.
|
|
JsonMediaTypeFormatter ( IContractResolver contractResolver, bool prettify ) : System |
Constructor.
|
|
ReadFromStreamAsync ( |
Asynchronously deserializes an object of the specified type.
|
|
WriteToStreamAsync ( |
Asynchronously writes an object of the specified type.
|
메소드 | 설명 | |
---|---|---|
CanReadOrWrite ( |
Returns a value indicating whether or not the dictionary has a metadata mapping for the given type.
|
|
CreatePatch ( |
Creates an instance of the patch object for the media type.
|
|
DeserializeValue ( |
Deserialize an object.
|
|
JsonMediaTypeFormatter ( string name, string mediaTypeName, IContractResolver contractResolver, bool prettify ) : System |
Constructor.
|
|
ReadFromJsonValue ( |
Read an object from the given JSON value.
|
|
SerializeValue ( |
Serialize the value into an JSON AST.
|
protected CanReadOrWrite ( |
||
type | The element type to test for a mapping. | |
리턴 | bool |
protected CreatePatch ( |
||
type | The type of the inner instance that is being patched. | |
contractResolver | IContractResolver | The contract resolver. |
jsonValue | JsonLite.Ast.JsonValue | The JSON value that represents the patch values. |
리턴 | IPatch |
protected DeserializeValue ( |
||
type | The type of the object to deserialize. | |
jsonValue | JsonLite.Ast.JsonValue | The JSON value that represents the object to deserialize. |
리턴 | object |
public GetPerRequestFormatterInstance ( |
||
type | The type to format. | |
request | The request. | |
mediaType | The media type. | |
리턴 | System.Net.Http.Formatting.MediaTypeFormatter |
public JsonMediaTypeFormatter ( IContractResolver contractResolver ) : System | ||
contractResolver | IContractResolver | The resource contract resolver used to resolve the contracts at runtime. |
리턴 | System |
public JsonMediaTypeFormatter ( IContractResolver contractResolver, bool prettify ) : System | ||
contractResolver | IContractResolver | The resource contract resolver used to resolve the contracts at runtime. |
prettify | bool | Indicates whether the output should formatted in a readable way. |
리턴 | System |
protected JsonMediaTypeFormatter ( string name, string mediaTypeName, IContractResolver contractResolver, bool prettify ) : System | ||
name | string | The friendly name of the format. |
mediaTypeName | string | The correct media type name for content negotiation. |
contractResolver | IContractResolver | The resource contract resolver used to resolve the contracts at runtime. |
prettify | bool | Indicates whether the output should formatted in a readable way. |
리턴 | System |
protected ReadFromJsonValue ( |
||
type | The type of the object to deserialize. | |
jsonValue | JsonLite.Ast.JsonValue | The JSON value to read. |
리턴 | object |
public ReadFromStreamAsync ( |
||
type | The type of the object to deserialize. | |
readStream | Stream | The |
content | The |
|
formatterLogger | IFormatterLogger | The |
리턴 | Task |
protected SerializeValue ( |
||
type | The type to serialize from. | |
value | object | The value to serialize. |
리턴 | JsonLite.Ast.JsonValue |
public WriteToStreamAsync ( |
||
type | The type of the object to write. | |
value | object | The object value to write. It may be null. |
writeStream | Stream | The |
content | The |
|
transportContext | System.Net.TransportContext | The |
리턴 | System.Threading.Tasks.Task |