views:

364

answers:

2

What is the use of ControllerActionInvoker class?

+2  A: 

Well, MSDN doesn't say much, but a quick search shows, and this: Part1 | Part2 which looks useful.

Marc Gravell
Thnqqq...Mr.MarcI have one more query..How to change the default Action name inside the ProcessRequest(HttpContextBase) method..
vecsuresh
I'm sorry, but I don't know.
Marc Gravell
+1  A: 

Basically it's an extensibility point on a Controller class that allows you to get in there and influence how the controller interacts with Parameters, Filters and the Action itself. When a request has been routed to the Controller, the Controller asks the ControllerActionInvoker to deal with the request (which normally involves it calling a method back on the Controller).

The main usage of this I've seen so far is to provide dependency injection into Action Filters as shown here, but I'm sure we'll see more uses for this feature popping up in the future!

Steve Willcock