C# Class MvcApi.Formatting.QueryStringMapping

Class that provides T:System.Net.Http.Headers.MediaTypeHeaderValues from query strings.
Inheritance: MediaTypeMapping
Mostra file Open project: dax70/MvcApi

Public Methods

Method Description
QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, MediaTypeHeaderValue mediaType ) : System

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.

QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, string mediaType ) : System

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.

Protected Methods

Method Description
OnTryMatchMediaType ( HttpRequestMessage request ) : double
OnTryMatchMediaType ( HttpResponseMessage response ) : double

Private Methods

Method Description
DoesQueryStringMatch ( NameValueCollection queryString ) : bool
Initialize ( string queryStringParameterName, string queryStringParameterValue ) : void

Method Details

OnTryMatchMediaType() protected final method

protected final OnTryMatchMediaType ( HttpRequestMessage request ) : double
request MvcApi.Http.HttpRequestMessage
return double

OnTryMatchMediaType() protected final method

protected final OnTryMatchMediaType ( HttpResponseMessage response ) : double
response MvcApi.Http.HttpResponseMessage
return double

QueryStringMapping() public method

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.
public QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, MediaTypeHeaderValue mediaType ) : System
queryStringParameterName string The name of the query string parameter to match, if present.
queryStringParameterValue string The value of the query string parameter specified by queryStringParameterName.
mediaType System.Net.Http.Headers.MediaTypeHeaderValue The to use if the query parameter specified by queryStringParameterName is present and assigned the value specified by queryStringParameterValue.
return System

QueryStringMapping() public method

Initializes a new instance of the T:System.Net.Http.Formatting.QueryStringMapping class.
public QueryStringMapping ( string queryStringParameterName, string queryStringParameterValue, string mediaType ) : System
queryStringParameterName string The name of the query string parameter to match, if present.
queryStringParameterValue string The value of the query string parameter specified by queryStringParameterName.
mediaType string The media type to use if the query parameter specified by queryStringParameterName is present and assigned the value specified by queryStringParameterValue.
return System