C# Class WebApiConneg.Formatters.JsonpMediaTypeFormatter

Inheritance: System.Net.Http.Formatting.JsonMediaTypeFormatter
Datei anzeigen Open project: tugberkugurlu/ProWebAPI.Samples

Public Methods

Method Description
GetPerRequestFormatterInstance ( Type type, HttpRequestMessage request, MediaTypeHeaderValue mediaType ) : System.Net.Http.Formatting.MediaTypeFormatter
JsonpMediaTypeFormatter ( ) : System
JsonpMediaTypeFormatter ( HttpRequestMessage request ) : System
WriteToStreamAsync ( Type type, object value, Stream stream, HttpContent content, System.Net.TransportContext transportContext ) : System.Threading.Tasks.Task

Private Methods

Method Description
IsJsonpRequest ( HttpRequestMessage request, string &callback ) : bool

Method Details

GetPerRequestFormatterInstance() public method

public GetPerRequestFormatterInstance ( Type type, HttpRequestMessage request, MediaTypeHeaderValue mediaType ) : System.Net.Http.Formatting.MediaTypeFormatter
type System.Type
request System.Net.Http.HttpRequestMessage
mediaType System.Net.Http.Headers.MediaTypeHeaderValue
return System.Net.Http.Formatting.MediaTypeFormatter

JsonpMediaTypeFormatter() public method

public JsonpMediaTypeFormatter ( ) : System
return System

JsonpMediaTypeFormatter() public method

public JsonpMediaTypeFormatter ( HttpRequestMessage request ) : System
request System.Net.Http.HttpRequestMessage
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