JsonContentNegotiator.Negotiate Method

Namespace:
Weavy.Web.Api.Formatters
Assembly:
Weavy.Web.dll

Negotiate(Type, HttpRequestMessage, IEnumerableTypeFormatter>)

Always returns a JsonMediaTypeFormatter.

public ContentNegotiationResult Negotiate(Type type, HttpRequestMessage request, IEnumerable<MediaTypeFormatter> formatters)

Parameters

type
System.Type

The type to be serialized.

request
System.Net.Http.HttpRequestMessage

The request.

formatters
System.Collections.Generic.IEnumerable

The set of MediaTypeFormatter objects from which to choose.

Returns

System.Net.Http.Formatting.ContentNegotiationResult