C# Class Nyan.Modules.Web.REST.formatters.CsvMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.MediaTypeFormatter
Mostrar archivo Open project: bucknellu/Nyan

Public Methods

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

Private Methods

Method Description
IsTypeOfIEnumerable ( Type type ) : bool
WriteStream ( Type type, object value, Stream stream, HttpContent content ) : void

Method Details

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

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

WriteToStreamAsync() public method

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