在ActionResult.Execute之前或之后是否
调用Controller.OnActionExecuted?
是否存在事件发生顺序的某个时间线?单凭google-fu我找不到任何东西.
首先
调用Controller.OnActionExecuted.
请参阅MSDN上的this post,它涵盖了MVC的控制器管道.
- Receive first request for the application
- Perform routing
- Create MVC request handler
- Create controller
- Execute controller
- Invoke action
- Execute result
原文链接:https://www.f2er.com/aspnet/247031.html