Share via


ODataActionSelector.GetActionMapping(HttpControllerDescriptor) Method

Definition

Returns a map, keyed by action string, of all System.Web.Http.Controllers.HttpActionDescriptor that the selector can select. This is primarily called by System.Web.Http.Description.IApiExplorer to discover all the possible actions in the controller.

public System.Linq.ILookup<string,System.Web.Http.Controllers.HttpActionDescriptor> GetActionMapping (System.Web.Http.Controllers.HttpControllerDescriptor controllerDescriptor);
abstract member GetActionMapping : System.Web.Http.Controllers.HttpControllerDescriptor -> System.Linq.ILookup<string, System.Web.Http.Controllers.HttpActionDescriptor>
override this.GetActionMapping : System.Web.Http.Controllers.HttpControllerDescriptor -> System.Linq.ILookup<string, System.Web.Http.Controllers.HttpActionDescriptor>
Public Function GetActionMapping (controllerDescriptor As HttpControllerDescriptor) As ILookup(Of String, HttpActionDescriptor)

Parameters

controllerDescriptor
System.Web.Http.Controllers.HttpControllerDescriptor

The controller descriptor.

Returns

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

A map of System.Web.Http.Controllers.HttpActionDescriptor that the selector can select, or null if the selector does not have a well-defined mapping of System.Web.Http.Controllers.HttpActionDescriptor.

Implements

System.Web.Http.Controllers.IHttpActionSelector.GetActionMapping(System.Web.Http.Controllers.HttpControllerDescriptor)

Exceptions

Applies to