RAD Studio VCL Reference
ContentsIndex
PreviousUpNext
TMultiModuleWebAppServices.ImplInitContext Method

Provides the underlying implementation for the InitContext method.

Pascal
procedure ImplInitContext(AWebModuleList: TAbstractWebModuleList; ARequest: TWebRequest; AResponse: TWebResponse); virtual;
C++
virtual __fastcall ImplInitContext(TAbstractWebModuleList AWebModuleList, TWebRequest ARequest, TWebResponse AResponse);

The InitContext method, which is called when the WebSnap application first receives a request, calls ImplInitContext to perform any initializations and to create the Web context for the new request message. 

ImplInitContext performs the following tasks: 

 

  1. Sets the WebModules, Request, and Response properties to the values of the AWebModuleList, ARequest, and AResponse parameters, respectively. 

  2. Calls the CreateContext method to create a Web context for the current request. This Web context can then be accessed using the global WebContext function. 

  3. Calls the InitModules method to initialize all the Web modules that the AWebModuleList parameter indicates are currently instantiated. (These are the Web modules that are created for every request message.) 

  4. Hooks up the ModuleAdded method so that it can initialize any Web modules that are instantiated in the course of processing the current request.

 

Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
What do you think about this topic? Send feedback!