Home > Article > Backend Development > Detailed introduction to MyMVC
The time when the MyMVC framework processes the return value is in the ExecuteAction method (there is that code in front). Here is just a simple additional explanation. I defined an interface for the result of Action: public interface IActionResult{ void Ouput(HttpContext context);} 4 types of ActionResult are implemented in the framework: ///
1. .NET MyMVC framework tutorial on processing return values
##Introduction: The time when the MyMVC framework processes the return value is in the ExecuteAction method (there is that code in front). Here is just a simple additional explanation. I defined an interface for the result of Action:
2. .NET MyMVC framework tutorial on how to assign values to methods
Introduction: Anyone who has used reflection knows that calling a method is very simple, but how to prepare incoming parameters for a method with [unknown signature]? Let’s answer this question. Please look at the implementation process of GetActionCallParameters:
3. .NET MyMVC framework’s detailed explanation of the process of executing Action
Introduction: In the GetHandler method of AjaxHandlerFactory, an ActionHandler will be created at the end, which is an HttpHandler, which will be used in the 15th step of the pipeline is called (quoting the sequence in the blog [Write your own service framework with Asp.net]).
4. Detailed explanation of the process of finding Action in MyMVC box
##Introduction: First, we must first register MyMVC's HttpHandlerFactory in web.config, which is the entrance to the entire framework. During the ASP.NET pipeline process, the GetHandler() method will be called, and finally my code has a chance to run!
The above is the detailed content of Detailed introduction to MyMVC. For more information, please follow other related articles on the PHP Chinese website!