private TryMatchMediaTypeMapping ( HttpRequestMessage request, MediaTypeFormatterMatch &mediaTypeMatch ) : bool | ||
request | HttpRequestMessage | |
mediaTypeMatch | MediaTypeFormatterMatch | |
Результат | bool |
internal bool TryMatchMediaTypeMapping(HttpRequestMessage request, out MediaTypeFormatterMatch mediaTypeMatch)
{
foreach (MediaTypeMapping mapping in this.MediaTypeMappings)
{
double num;
if ((mapping != null) && ((num = mapping.TryMatchMediaType(request)) > 0.0))
{
mediaTypeMatch = new MediaTypeFormatterMatch(mapping.MediaType, num);
return true;
}
}
mediaTypeMatch = null;
return false;
}
MediaTypeFormatter::TryMatchMediaTypeMapping ( HttpResponseMessage response, MediaTypeFormatterMatch &mediaTypeMatch ) : bool |