RequestEvents Class |
Namespace: CMS.Base
public sealed class RequestEvents
The RequestEvents type exposes the following members.
Name | Description | |
---|---|---|
AcquireRequestState |
Occurs when ASP.NET acquires the current state (for example, session state) that is associated with the current request.
| |
Authenticate |
Occurs when a security module has established the identity of a user.
| |
Authorize |
Occurs when a security module has verified user authorization.
| |
Begin |
Occurs as the first event in the HTTP pipeline chain of execution when ASP.NET responds to a request.
| |
End |
Occurs as the last event in the HTTP pipeline chain of execution when ASP.NET responds to a request.
| |
Finalize |
Occurs as the last event in the pipeline and can be used to clean up and release resources used by the request.
| |
MapRequestHandler |
Occurs when a handler is selected to respond to the request.
| |
PostAcquireRequestState |
Occurs after the request state (for example, session state) that is associated with the current request has been obtained.
| |
PostAuthorize |
Occurs when the user for the current request has been authorized.
| |
PostMapRequestHandler |
Occurs after ASP.NET has mapped the current request to the appropriate event handler.
| |
PostResolveRequestCache |
Occurs when ASP.NET bypasses execution of the current event handler and allows a caching module to serve a request from the cache.
| |
Prepare |
Occurs before the Begin event.
| |
RunEndRequestTasks |
Occurs after the End event has finished.
|
These request events allow you to handle most usable events from HttpApplication without the need to create a custom HTTP module or edit global.asax.
The events are represented by fields of the SimpleHandler type. Handler methods need to be assigned to the Execute event of individual fields.
The events are not raised out of web-based applications without the CMSApplication module (when using the Kentico API externally).