Please enable JavaScript.
Coggle requires JavaScript to display documents.
Core MVC Request Life Cycle - Coggle Diagram
Core MVC Request Life Cycle
Request
Middleware
Routing
Controller Initialization
Action Method Execution
Result Execution
View Rendering
If the action result is a ViewResult, the view engine is invoked to render the corresponding view
Response
The fully rendered HTML response is sent back to the client. This includes any HTTP headers, cookies, and the response body.
The action method returns an instance of an ActionResult or one of its derived classes, such as ViewResult, JsonResult, etc
Model Binding
The model binding process takes place before the action method is executed from the values from the request
Action Filters
Action filters can be applied to the action method or the controller to perform pre-and-post-processing logic. These filters can modify the request and perform authentication, authorization, logging, caching, etc.
The action method specified in the route is invoked on the controller instance
The controller’s constructor and any dependencies are resolved using the configured dependency injection container.
ASP.NET Routing system matches the incoming determines which controller and action method should handle the request
Request enters the request pipeline through middleware.