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:
- The first step in the ASP. NET processing pipeline is to create a HttpWorkerRequest object that contains all the information about the current request.
- 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.
- 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.
- After the HttpApplication instance has been created, it is initialized and the application definition is assigned during initialization
- There are modules. Modular implementation of the IHttpModule interface class, the role is to achieve the classic 19 standard processing events.
- 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.
- Creates a handler, passes the current HttpContext, and once the ProcessRequest method returns, the request is complete.