The Application context object holds information that is used throughout each page (or server) request. The Application is available to all objects, either as a direct parameter or property on an existing object. The Application object is created as the first object in any request, and when possible it is cached for performance purposes.
Assembly: EAP.Core (in EAP.Core.dll) Version: 220.127.116.11 (18.104.22.168)
public interface IAppContext : IEAPBase, IDisposable
Public Interface IAppContext Inherits IEAPBase, IDisposable
The Application object handles connecting to the authentication provider, authenticating the user, checking object permissions for that user, storing user (UserContext) information, holding the list of available PageInfo objects, and connecting to the metadata (Repository) data source. It also has a collection of DataSources specified in metadata.
An application is loaded in the following sequence:
- Configuration properties are loaded from the running application's configuration file. In the web, this file is web.config. In the studio, this file is EAP.Tools.exe.config. The configuration settings must have the named connection strings that will be used in the application.
- The repository database is opened (see OpenRepository(String, Properties)).
- The application's ID is set (optional). If there is no ID set, the default application configured in the repository is used.
- Init()()()() is called. During Init, the TextItems, Properties, Versions, Extensions, and Related Data Sources are loaded.
- The IAuthenticationProvider is determined from Application properties and an instance is created.
- The ApplicationBeforeAuthenticate event is fired.
- The configured Authentication provider's IAuthenticationProvider method is called to authenticate the user and load the user's profiles.
- The ApplicationAfterAuthenticate event is fired.
- The Load()()()() method is called to load the PageInfo and Navigator objects into the PageInfos and Navigators collections respectively. Pages and navigators respect the permissions of the authenticated user.
- The ApplicationAfterLoad event is fired.