Click or drag to resize
RequestEvents Class
Holds events that allow performing of custom logic at specific points within the request processing.
Inheritance Hierarchy
SystemObject
  CMS.BaseRequestEvents

Namespace: CMS.Base
Assembly: CMS.Base (in CMS.Base.dll) Version: 11.0.0
Syntax
C#
public sealed class RequestEvents

The RequestEvents type exposes the following members.

Fields
  NameDescription
Public fieldStatic memberAcquireRequestState
Occurs when ASP.NET acquires the current state (for example, session state) that is associated with the current request.
Public fieldStatic memberAuthenticate
Occurs when a security module has established the identity of a user.
Public fieldStatic memberAuthorize
Occurs when a security module has verified user authorization.
Public fieldStatic memberBegin
Occurs as the first event in the HTTP pipeline chain of execution when ASP.NET responds to a request.
Public fieldStatic memberEnd
Occurs as the last event in the HTTP pipeline chain of execution when ASP.NET responds to a request.
Public fieldStatic memberFinalize
Occurs as the last event in the pipeline and can be used to clean up and release resources used by the request.
Public fieldStatic memberMapRequestHandler
Occurs when a handler is selected to respond to the request.
Public fieldStatic memberPostAcquireRequestState
Occurs after the request state (for example, session state) that is associated with the current request has been obtained.
Public fieldStatic memberPostAuthorize
Occurs when the user for the current request has been authorized.
Public fieldStatic memberPostMapRequestHandler
Occurs after ASP.NET has mapped the current request to the appropriate event handler.
Public fieldStatic memberPostResolveRequestCache
Occurs when ASP.NET bypasses execution of the current event handler and allows a caching module to serve a request from the cache.
Public fieldStatic memberPrepare
Occurs before the Begin event.
Public fieldStatic memberRunEndRequestTasks
Occurs after the End event has finished.
Top
Remarks

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).

See Also