Method | Description | |
---|---|---|
CanReadType ( |
Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can deserializean object of the specified type.
|
|
CanWriteType ( |
Queries whether this T:System.Net.Http.Formatting.MediaTypeFormatter can serializean object of the specified type.
|
|
ReadFromStreamAsync ( |
Asynchronously deserializes an object of the specified type.
|
|
WriteToStreamAsync ( |
Asynchronously writes an object of the specified type.
|
public CanReadType ( |
||
type | The type to deserialize. | |
return | bool |
public CanWriteType ( |
||
type | The type to serialize. | |
return | bool |
public ReadFromStreamAsync ( |
||
type | The type of the object to deserialize. | |
readStream | Stream | The |
content | System | The |
formatterLogger | IFormatterLogger | The |
return | Task |
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 | System | The |
transportContext | System.Net.TransportContext | The |
return | System.Threading.Tasks.Task |