HttpApplication processing pipeline 19 events.

Source: Internet
Author: User

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.

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.