11
Vote

Make IActionMethodSelector public - AjaxOnlyAttribute

description

Currently, Web API contains IActionMethodSelector but unfortunately it's internal. So, you cannot use action method selector or action name selector in Web API. But you can easily create AjaxOnly, Please make this public. See http://forums.asp.net/p/1784268/4910381.aspx

comments

trdai wrote Jan 7 at 7:08 PM

There are a few more scenarios may need this interface to be open:
  1. Distinguish actions with same parameters under same controller when action name is optional in the route. Usually one action is given a name identical to a HTTP verb. So a short URL + same VERB shall be routed to the same, and a URL with something route to the other.
  2. Implement versioning: http://forums.asp.net/t/1772404.aspx/1?Custom+ActionMethodSelector