C# Class ODataRestierDynamic.Models.DynamicODataActionSelector

Contains the logic for selecting an action method.
Inheritance: IHttpActionSelector
Show file Open project: arcelormittalkriviyrih/odata_unified_svc

Public Methods

Method Description
DynamicODataActionSelector ( IHttpActionSelector innerSelector ) : System

Initializes a new instance of the DynamicODataActionSelector class.

GetActionMapping ( HttpControllerDescriptor controllerDescriptor ) : HttpActionDescriptor>.ILookup

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.

SelectAction ( System.Web.Http.Controllers.HttpControllerContext controllerContext ) : HttpActionDescriptor

Selects the action for the controller.

Method Details

DynamicODataActionSelector() public method

Initializes a new instance of the DynamicODataActionSelector class.
public DynamicODataActionSelector ( IHttpActionSelector innerSelector ) : System
innerSelector IHttpActionSelector The inner controller selector to call.
return System

GetActionMapping() public method

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 GetActionMapping ( HttpControllerDescriptor controllerDescriptor ) : HttpActionDescriptor>.ILookup
controllerDescriptor HttpControllerDescriptor The controller descriptor.
return HttpActionDescriptor>.ILookup

SelectAction() public method

Selects the action for the controller.
public SelectAction ( System.Web.Http.Controllers.HttpControllerContext controllerContext ) : HttpActionDescriptor
controllerContext System.Web.Http.Controllers.HttpControllerContext The context of the controller.
return HttpActionDescriptor