C# Class ParkerFox.Site.Component.MediaTypeFormatters.BsonMediaTypeFormatter

http://www.strathweb.com/2012/07/bson-binary-json-and-how-your-web-api-can-be-even-faster/
Inheritance: System.Net.Http.Formatting.MediaTypeFormatter
Mostra file Open project: KHProjects/KH-Parker-Fox

Public Methods

Method Description
BsonMediaTypeFormatter ( ) : System
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
ReadFromStreamAsync ( Type type, Stream readStream, System content, IFormatterLogger formatterLogger ) : Task
WriteToStreamAsync ( Type type, object value, Stream writeStream, System content, System transportContext ) : System.Threading.Tasks.Task

Private Methods

Method Description
CreateDefaultSerializerSettings ( ) : JsonSerializerSettings

Method Details

BsonMediaTypeFormatter() public method

public BsonMediaTypeFormatter ( ) : System
return System

CanReadType() public method

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

CanWriteType() public method

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

ReadFromStreamAsync() public method

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

WriteToStreamAsync() public method

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