I have an HttpModule that is doing some processing on a request before the web api controller's action is executed. I'd like to be able to identify what controller/action will be executed by the request so I can examine some attributes that may be set on the controller/action ahead-of-time. How do I discover the controller/action that a particular requst URI will invoke?
In the HttpModule, obviously I can get the RouteData from the RouteTable -- how do I use this to find out the type (or preferably methodinfo, or at least method name) of the controller & action that will be invoked?