Share via


OperationImportRoutingConvention.SelectAction Method

Definition

Overloads

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

Selects the action for OData requests.

SelectAction(RouteContext, SelectControllerResult, IEnumerable<ControllerActionDescriptor>)

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

Selects the action for OData requests.

public override string SelectAction (Microsoft.AspNet.OData.Routing.ODataPath odataPath, System.Web.Http.Controllers.HttpControllerContext controllerContext, System.Linq.ILookup<string,System.Web.Http.Controllers.HttpActionDescriptor> actionMap);
override this.SelectAction : Microsoft.AspNet.OData.Routing.ODataPath * System.Web.Http.Controllers.HttpControllerContext * System.Linq.ILookup<string, System.Web.Http.Controllers.HttpActionDescriptor> -> string
Public Overrides 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

Remarks

This signature uses types that are AspNet-specific.

Applies to

SelectAction(RouteContext, SelectControllerResult, IEnumerable<ControllerActionDescriptor>)

public override string SelectAction (Microsoft.AspNetCore.Routing.RouteContext routeContext, Microsoft.AspNet.OData.Routing.Conventions.SelectControllerResult controllerResult, System.Collections.Generic.IEnumerable<Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor> actionDescriptors);
override this.SelectAction : Microsoft.AspNetCore.Routing.RouteContext * Microsoft.AspNet.OData.Routing.Conventions.SelectControllerResult * seq<Microsoft.AspNetCore.Mvc.Controllers.ControllerActionDescriptor> -> string
Public Overrides Function SelectAction (routeContext As RouteContext, controllerResult As SelectControllerResult, actionDescriptors As IEnumerable(Of ControllerActionDescriptor)) As String

Parameters

routeContext
RouteContext
controllerResult
SelectControllerResult

Returns

Applies to