C# Class MvcApi.Formatting.JsonMediaTypeFormatter

Inheritance: StreamMediaTypeFormatter
Exibir arquivo Open project: dax70/MvcApi Class Usage Examples

Public Methods

Method Description
CanWriteType ( Type type ) : bool
CreateDefaultSerializerSettings ( ) : JsonSerializerSettings
JsonMediaTypeFormatter ( ) : System
WriteTo ( Type type, object value, TextWriter textWriter ) : void
WriteToStream ( Type type, object value, Stream stream, HttpRequestMessage requestMessage ) : void

Method Details

CanWriteType() public method

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

CreateDefaultSerializerSettings() public method

public CreateDefaultSerializerSettings ( ) : JsonSerializerSettings
return Newtonsoft.Json.JsonSerializerSettings

JsonMediaTypeFormatter() public method

public JsonMediaTypeFormatter ( ) : System
return System

WriteTo() public method

public WriteTo ( Type type, object value, TextWriter textWriter ) : void
type System.Type
value object
textWriter System.IO.TextWriter
return void

WriteToStream() public method

public WriteToStream ( Type type, object value, Stream stream, HttpRequestMessage requestMessage ) : void
type System.Type
value object
stream Stream
requestMessage MvcApi.Http.HttpRequestMessage
return void