DynamicPropertyRoutingConvention.SelectAction Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
SelectAction(ODataPath, HttpControllerContext, ILookup<String,HttpActionDescriptor>) |
Selects the action for OData requests. |
SelectAction(RouteContext, SelectControllerResult, IEnumerable<ControllerActionDescriptor>) |
Selects the action for OData requests. |
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.
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>)
Selects the action for OData requests.
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
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.