ASP.NET MVC Request Life Cycle
3/08/2019  View: 400
Chia sẻ đến

If you have worked on ASP.NET MVC, you must be familiar with how when you type in an URL, the appropriate controller is chosen, and the action fired. Today we will dig a little deeper within the MVC request life cycle.

Before we start discussing its life cycle, let's briefly understand the concept of HttpHandlers and HttpModules. Handlers are responsible for generating the actual response in MVC. They implement the IHttpHandler class and only one handler will execute per request. On the other hand, HttpModules are created in response to life cycle events. Modules can, for example, be used for populating HttpContext objects. A request can use many modules. These classes derive from IHttpModule.

We are now ready to learn about the MVC Request Life Cycle.

The MVC life cycle can be briefly demonstrated as below,


CHI TIẾT - READ MORE