C# Class Cares.WebBase.WebApi.JsonNetFormatter

Json.NET formatter
Inheritance: System.Net.Http.Formatting.MediaTypeFormatter
Mostrar archivo Open project: innoist/GF-FRS

Public Methods

Method Description
CanReadType ( Type type ) : bool

Override

CanWriteType ( Type type ) : bool

Overrride

JsonNetFormatter ( JsonSerializerSettings jsonSerializerSettings ) : System

Constructor

ReadFromStreamAsync ( Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger ) : Task

Override

WriteToStreamAsync ( Type type, object value, Stream writeStream, HttpContent content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task

Override

Method Details

CanReadType() public method

Override
public CanReadType ( Type type ) : bool
type System.Type
return bool

CanWriteType() public method

Overrride
public CanWriteType ( Type type ) : bool
type System.Type
return bool

JsonNetFormatter() public method

Constructor
public JsonNetFormatter ( JsonSerializerSettings jsonSerializerSettings ) : System
jsonSerializerSettings Newtonsoft.Json.JsonSerializerSettings
return System

ReadFromStreamAsync() public method

Override
public ReadFromStreamAsync ( Type type, Stream readStream, HttpContent content, IFormatterLogger formatterLogger ) : Task
type System.Type
readStream Stream
content System.Net.Http.HttpContent
formatterLogger IFormatterLogger
return Task

WriteToStreamAsync() public method

Override
public WriteToStreamAsync ( Type type, object value, Stream writeStream, HttpContent content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task
type System.Type
value object
writeStream Stream
content System.Net.Http.HttpContent
transportContext System.Net.TransportContext
return System.Threading.Tasks.Task