C# Class MvcApi.Formatting.MediaTypeMapping

Exibir arquivo Open project: dax70/MvcApi

Public Methods

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

Protected Methods

Method Description
MediaTypeMapping ( MediaTypeHeaderValue mediaType ) : System
MediaTypeMapping ( string mediaType ) : System
OnTryMatchMediaType ( HttpRequestMessage request ) : double
OnTryMatchMediaType ( HttpResponseMessage response ) : double

Private Methods

Method Description
MediaTypeMapping ( ) : System

Method Details

MediaTypeMapping() protected method

protected MediaTypeMapping ( MediaTypeHeaderValue mediaType ) : System
mediaType System.Net.Http.Headers.MediaTypeHeaderValue
return System

MediaTypeMapping() protected method

protected MediaTypeMapping ( string mediaType ) : System
mediaType string
return System

OnTryMatchMediaType() protected abstract method

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

OnTryMatchMediaType() protected abstract method

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

TryMatchMediaType() public method

public TryMatchMediaType ( HttpRequestMessage request ) : double
request MvcApi.Http.HttpRequestMessage
return double

TryMatchMediaType() public method

public TryMatchMediaType ( HttpResponseMessage response ) : double
response MvcApi.Http.HttpResponseMessage
return double