Interface IHttpActionSelector
- Namespace
- System.Web.Http.Controllers
- Assembly
- System.Web.Http.dll
Contains the logic for selecting an action method.
public interface IHttpActionSelector
Methods
GetActionMapping(HttpControllerDescriptor)
Returns a map, keyed by action string, of all HttpActionDescriptor that the selector can select. This is primarily called by IApiExplorer to discover all the possible actions in the controller.
ILookup<string, HttpActionDescriptor> GetActionMapping(HttpControllerDescriptor controllerDescriptor)
Parameters
controllerDescriptor
HttpControllerDescriptorThe controller descriptor.
Returns
- ILookup<string, HttpActionDescriptor>
A map of HttpActionDescriptor that the selector can select, or null if the selector does not have a well-defined mapping of HttpActionDescriptor.
SelectAction(HttpControllerContext)
Selects the action for the controller.
HttpActionDescriptor SelectAction(HttpControllerContext controllerContext)
Parameters
controllerContext
HttpControllerContextThe context of the controller.
Returns
- HttpActionDescriptor
The action for the controller.