ASP. NET pipeline (second article)

Source: Internet
Author: User

From the request into the ASP. Process until it reaches the final handler, a sequence of steps and procedures is called the ASP.

The processing pipeline process for ASP. NET is as follows:

  

The language is described as follows:

  1. The first step in the ASP. NET processing pipeline is to create a HttpWorkerRequest object that contains all the information about the current request.
  2. The HttpWorkerRequest passes the request to the static ProcessRequest method of the HttpRuntime class. The first thing httpruntime to do is to create a HttpContext object and initialize it with HttpWorkerRequest.
  3. After the HttpContext instance is created, the HttpRuntime class is called by calling the HttpApplicationFactory static GetApplicationInstance () method. An example of a HttpApplication derived class is requested for the application. The GetApplicationInstance () method either creates a new instance of the HttpApplication class or extracts an instance from the Application object pool.
  4. After the HttpApplication instance has been created, it is initialized and the application definition is assigned during initialization
  5. There are modules. Modular implementation of the IHttpModule interface class, the role is to achieve the classic 19 standard processing events.
  6. After creating the module, the HttpRuntime class calls its BeginProcessRequest method, requiring the newly retrieved HttpApplication class to serve the current request. Then, find the appropriate handler factory for the current request.
  7. Creates a handler, passes the current HttpContext, and once the ProcessRequest method returns, the request is complete.

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.