The HttpApplication object was created by ASP., which is an important object in ASP. NET to process the request. To facilitate extensibility, HttpApplication is handled in a way that handles pipelines, dividing the steps of processing into multiple steps, each of which is exposed to the programmer in the form of events, which are triggered sequentially in a fixed order of processing. Programmers can define a request extension process by writing an event-handling method.
For HttpApplication, to ASP. 4.0, 19 standard events are provided.
1.beginrequest:asp.net begins processing the first event of the request, indicating the start of processing.
2.AuthenticateRequest: Authentication request, generally used to obtain the requested user information.
3.PostAuthenticateRequest: The requested user information has been obtained.
4.AuthorizeRequest: Authorization, generally used to check whether a user's request is granted permission.
5.PostAuthorizeRequest: User request has been granted.
6.ResolveRequestCache: Gets the processing results of the previous processing cache, if previously cached, then no more processing of the request, directly return the cached results.
7.PostResolveRequestCache: The processing of the cache has been completed.
8.PostMapRequestHandler: The requested processor object has been created based on the user's request.
9.AcquireRequestState: The status of the request, generally used in the session
10.PostAcquireRequestState: The session has been obtained
11.PreRequestHandlerExecute: Prepare the handler for execution.
12.PostRequestHandlerExecute: The handler has been executed
13.ReleaseRequestState: The status of the release request.
14.PostReleaseRequestState: The status of the request has been released.
15.UpdateRequestCache: Update the cache.
16.PostUpdateRequestCache: The cache has been updated.
17.LogRequest: Requested log operation
18.PostLogRequest: The requested log operation has been completed.
19.EndRequest: This request processing is completed.
The
HttpApplication handles 19 events for a pipeline.