C# Class WebApiDoodle.Net.Http.Formatting.CSVMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.MediaTypeFormatter
Show file Open project: tugberkugurlu/WebAPIDoodle

Public Methods

Method Description
CSVMediaTypeFormatter ( ) : System
CSVMediaTypeFormatter ( IEnumerable mediaTypeMappings ) : System
CSVMediaTypeFormatter ( System.Net.Http.Formatting.MediaTypeMapping mediaTypeMapping ) : System
CanReadType ( Type type ) : bool
CanWriteType ( Type type ) : bool
WriteToStreamAsync ( Type type, object value, Stream writeStream, HttpContent content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task

Private Methods

Method Description
isTypeOfIEnumerable ( Type type ) : bool
writeToStream ( Type type, object value, Stream stream, HttpContentHeaders contentHeaders ) : void

Method Details

CSVMediaTypeFormatter() public method

public CSVMediaTypeFormatter ( ) : System
return System

CSVMediaTypeFormatter() public method

public CSVMediaTypeFormatter ( IEnumerable mediaTypeMappings ) : System
mediaTypeMappings IEnumerable
return System

CSVMediaTypeFormatter() public method

public CSVMediaTypeFormatter ( System.Net.Http.Formatting.MediaTypeMapping mediaTypeMapping ) : System
mediaTypeMapping System.Net.Http.Formatting.MediaTypeMapping
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

WriteToStreamAsync() public method

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