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.
| |
LogRequest |
Occurs just before ASP.NET performs any logging for the current 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.
| |
PostAuthenticate |
Occurs when a security module has established the identity of the user.
| |
PostAuthorize |
Occurs when the user for the current request has been authorized.
| |
PostLogRequest |
Occurs when ASP.NET has completed processing all the event handlers for the LogRequest event.
| |
PostMapRequestHandler |
Occurs after ASP.NET has mapped the current request to the appropriate event handler.
| |
PostReleaseRequestState |
Occurs when ASP.NET has completed executing all request event handlers and the request state data has been stored.
| |
PostRequestHandlerExecute |
Occurs when the ASP.NET event handler (for example, a page or an XML Web service) finishes execution.
| |
PostResolveRequestCache |
Occurs when ASP.NET bypasses execution of the current event handler and allows a caching module to serve a request from the cache.
| |
PostUpdateRequestCache |
Occurs when ASP.NET finishes updating caching modules and storing responses that are used to serve subsequent requests from the cache.
| |
Prepare |
Occurs before the Begin event.
| |
PreRequestHandlerExecute |
Occurs just before ASP.NET starts executing an event handler.
| |
PreSendRequestContent |
Occurs just before ASP.NET sends content to the client.
| |
PreSendRequestHeaders |
Occurs just before ASP.NET sends HTTP headers to the client.
| |
ReleaseRequestState |
Occurs after ASP.NET finishes executing all request event handlers. This event causes state modules to save the current state data
| |
RequestCompleted |
Occurs when the managed objects that are associated with the request have been released.
| |
ResolveRequestCache |
Occurs when ASP.NET finishes an authorization event to let the caching modules serve requests from the cache, bypassing execution of the event handler (for example, a page or an XML Web service).
| |
RunEndRequestTasks |
Occurs after the End event has finished.
| |
UpdateRequestCache |
Occurs when ASP.NET finishes executing an event handler in order to let caching modules store responses that will be used to serve subsequent requests from the cache.
|
These request events allow you to handle most usable events from application 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).