Lifecycle of an ASP.NET MVC 5 Application

by Cephas Lin

Download PDF Document

https://opdhsblobprod04.blob.core.windows.net/contents/ed5efb1947c04bb29402a0c08d68958e/d0ed2e012c44fea6a368d4591ea14088?sv=2018-03-28&sr=b&si=ReadPolicy&sig=vkx8ilzAGriciXmi53zojv5AZqsEmhzz1rnFAs%2FzPVc%3D&st=2020-04-17T06%3A17%3A28Z&se=2020-04-18T06%3A27%3A28Z

Here you can download a PDF document that charts the lifecycle of every ASP.NET MVC 5 application, from receiving the HTTP request to sending the HTTP response back to the client. It is designed both as an educational tool for those who are new to ASP.NET MVC and also as a reference for those who need to drill into specific aspects of the application. The PDF document has the following features:

  • Relevant HttpApplication stages to help you understand where MVC integrates into the ASP.NET application lifecycle.
  • A high-level view of the MVC application lifecycle, where you can understand the major stages that every MVC application passes through in the request processing pipeline.
    Lifecycle of an ASP.NET MVC 5 Application_5e
  • A detail view that shows drills down into the details of the request processing pipeline. You can compare the high-level view and the detail view to see how the lifecycles details are collected into the various stages. Download PDF to see a larger view. Lifecycle of an ASP.NET MVC 5 Application_mvc_02
  • Placement and purpose of all overridable methods on the Controller object in the request processing pipeline. You may or may not have the need to override any one method, but it is important for you to understand their role in the application lifecycle so that you can write code at the appropriate life cycle stage for the effect you intend.
  • Blown-up diagrams showing how each of the filter types (authentication, authorization, action, and result) is invoked.
  • Link to a useful article or blog from each point of interest in the detail view.

Next Steps

Does this document meet your need? We'd appreciate your feedback. If you have any question on the ASP.NET MVC lifecycle in your application, Stackoverflow and the ASP.NET MVC forums are great places to ask. Follow me on twitter so you can get updates on my latest tutorials.