Class ActionRoutingConvention
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
ODataPathThe OData path.
controllerContext
HttpControllerContextThe 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