Jaa


IODataRoutingConvention.SelectAction Method

Definition

Overloads

SelectAction(RouteContext)

Selects the controller and action for OData requests.

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

Selects the action for OData requests.

SelectAction(RouteContext)

Selects the controller and action for OData requests.

public System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor> SelectAction (Microsoft.AspNetCore.Routing.RouteContext routeContext);
abstract member SelectAction : Microsoft.AspNetCore.Routing.RouteContext -> seq<Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor>
Public Function SelectAction (routeContext As RouteContext) As IEnumerable(Of ControllerActionDescriptor)

Parameters

routeContext
RouteContext

The route context.

Returns

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

Applies to

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

Selects the action for OData requests.

public string SelectAction (Microsoft.AspNet.OData.Routing.ODataPath odataPath, System.Web.Http.Controllers.HttpControllerContext controllerContext, System.Linq.ILookup<string,System.Web.Http.Controllers.HttpActionDescriptor> actionMap);
abstract member SelectAction : Microsoft.AspNet.OData.Routing.ODataPath * System.Web.Http.Controllers.HttpControllerContext * System.Linq.ILookup<string, System.Web.Http.Controllers.HttpActionDescriptor> -> string
Public Function SelectAction (odataPath As ODataPath, controllerContext As HttpControllerContext, actionMap As ILookup(Of String, HttpActionDescriptor)) As String

Parameters

odataPath
ODataPath

The OData path.

controllerContext
System.Web.Http.Controllers.HttpControllerContext

The controller context.

actionMap
ILookup<String,System.Web.Http.Controllers.HttpActionDescriptor>

The action map.

Returns

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

Applies to