Table of Contents

Class ActionRoutingConvention

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

An implementation of IODataRoutingConvention that handles action invocations.

public class ActionRoutingConvention : EntitySetRoutingConvention, IODataRoutingConvention
Inheritance
ActionRoutingConvention
Implements
Inherited Members

Constructors

ActionRoutingConvention()

public ActionRoutingConvention()

Methods

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

Selects the action for OData requests.

public override 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