Table of Contents

Class MetadataRoutingConvention

Namespace
System.Web.Http.OData.Routing.Conventions
Assembly
System.Web.Http.OData.dll

An implementation of IODataRoutingConvention that handles OData metadata requests.

public class MetadataRoutingConvention : IODataRoutingConvention
Inheritance
MetadataRoutingConvention
Implements
Inherited Members

Constructors

MetadataRoutingConvention()

public MetadataRoutingConvention()

Methods

SelectAction(ODataPath, HttpControllerContext, ILookup<string, HttpActionDescriptor>)

Selects the action for OData requests.

public string SelectAction(ODataPath odataPath, HttpControllerContext controllerContext, ILookup<string, HttpActionDescriptor> actionMap)

Parameters

odataPath ODataPath

The OData path.

controllerContext HttpControllerContext

The controller context.

actionMap ILookup<string, HttpActionDescriptor>

The action map.

Returns

string

null if the request isn't handled by this convention; otherwise, the name of the selected action

SelectController(ODataPath, HttpRequestMessage)

Selects the controller for OData requests.

public string SelectController(ODataPath odataPath, HttpRequestMessage request)

Parameters

odataPath ODataPath

The OData path.

request HttpRequestMessage

The request.

Returns

string

null if the request isn't handled by this convention; otherwise, the name of the selected controller