ASP.NET MVC AsyncController xxxCompleted

When implementing ASP.NET MVC AsyncController, the xxxCompleted method must be public. I am wondering if this means that the xxxCompleted method can be called directly or if it is protected internally with NonAction or something like that?

Thank.

+5
source share
1 answer

Internally (and simplified), there is an array of MethodInfoactions on the async controller. When he built the suffixes Asyncand Completed, the names of the action methods are deleted.

, IndexCompleted, , IndexCompleted ( ), AsyncControllerActionInvoker , .

, , :

ASP.NET MVC 2 CodePlex

+2

All Articles