This website requires JavaScript.
Explore
Help
Register
Sign In
yv01p
/
Umbraco-CMS
Watch
1
Star
0
Fork
0
You've already forked Umbraco-CMS
Code
Issues
Pull Requests
Actions
Packages
Projects
Releases
Wiki
Activity
30,506
Commits
4
Branches
7
Tags
c27e876c75633d552ab84e37bf48e2da3d39cc02
Commit Graph
2 Commits
Author
SHA1
Message
Date
Stephan
c76403077f
Normalize cr/lf/tab
2017-07-20 11:21:28 +02:00
Shannon
916bad82df
Ensures that the RenderActionInvoker isn't doing anything special so that MVC takes care of everything regarding async vs non-async and any controller descriptor/action descriptor lookups and cache. Creates a RenderIndexActionSelectorAttribute - this is used to decorate the underlying RenderMvcController.Index action. MVC will call into this method to check if the MethodInfo is valid, we then do a quick comparison of types, if the current type is the same as the reflected type, this means that the Index action has been overridden or there is no custom controller... lets use it. If the types don't match we'll do a simple reflected lookup to check if the reflected controller type (current controller) has more than one index action, if so, it means that a custom controller is in play and it has a custom index action... so we won't use the base class action and then it's up to MVC to find any other matching Index action based on the current request parameters. Added some tests for this too.
2015-11-18 14:59:29 +01:00