Share via


NavigationSourceRoutingConvention.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, SelectControllerResult, IEnumerable<ControllerActionDescriptor>)

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>
override this.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.

Implements

Remarks

This signature uses types that are AspNetCore-specific.

Applies to

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

Selects the action for OData requests.

public abstract 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 MustOverride 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

Implements

Remarks

This signature uses types that are AspNet-specific.

Applies to

SelectAction(RouteContext, SelectControllerResult, IEnumerable<ControllerActionDescriptor>)

Selects the action for OData requests.

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

Parameters

routeContext
RouteContext

The route context.

controllerResult
SelectControllerResult

The result of selecting a controller.

actionDescriptors
IEnumerable<ControllerActionDescriptor>

The list of action descriptors.

Returns

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

Remarks

This signature uses types that are AspNetCore-specific.

Applies to