Class CMSApplication
- Namespace
- CMS.DataEngine
- Assembly
- CMS.DataEngine.dll
Base class for CMS Application
public class CMSApplication
- Inheritance
-
objectCMSApplication
- Extension Methods
Fields
EnsureDefaultDBSchema
If true, the application ensures the default schema for the user upon its initialization. Use this setting for Windows authentication on DB server with automatic default schema.
public static BoolAppSetting EnsureDefaultDBSchema
Field Value
Properties
ApplicationErrorMessage
Connection error message.
public static string ApplicationErrorMessage { get; set; }
Property Value
- string
ApplicationInitializeTask
Task that completes when the application is initialized.
public static Task ApplicationInitializeTask { get; }
Property Value
- Task
ApplicationInitialized
Defines the state whether the application is initialized. If true, the application was initialized correctly. If false, the application was initialized with an error. If null, the initialization is to be done.
public static bool? ApplicationInitialized { get; }
Property Value
- bool?
ApplicationStart
Date and time of the application start.
public static DateTime ApplicationStart { get; }
Property Value
- DateTime
ApplicationStartFinished
Date and time when the application start (initialization) finished its execution.
public static DateTime ApplicationStartFinished { get; }
Property Value
- DateTime
Methods
ApplicationEnd()
Raises the application end event to properly end the application
public static void ApplicationEnd()
ApplicationError()
Raises the application error event
public static void ApplicationError()
Init()
Performs the application initialization on the first request.
public static bool Init()
Returns
- bool
Returns true, if the application was initialized during this call.
PostStart()
Runs the application post start event in case it wasn't run already
public static void PostStart()
PreInit()
Performs the application pre-initialization thus collects services for the IoC container and builts the service provider.
public static bool PreInit()
Returns
- bool
PreInit(bool)
Performs the application pre-initialization, collects services to IoC container but does not built the container.
public static bool PreInit(bool initializeContainer)
Parameters
initializeContainer
boolDecides whether IoC container will be initialized.
Returns
- bool
Returns true, if the application was pre-initialized during this call.
- See Also
-
SetServiceProvider(IServiceProvider)