Property | Type | Description |
---|
Method | Description | |
---|---|---|
CleanUpStatics ( ) : void |
Performs cleanup activities so the application can be shut down.
|
|
ExecuteAppWithStandardExceptionHandling ( System.Action method ) : int |
Executes the specified method. Returns 0 if it is successful. If an exception occurs, this method returns 1 and details about the exception are emailed to the developers and logged. This should only be used at the root level of a console application because it checks to ensure the system logic has initialized properly and its return code is designed to be useful from the command line of such an application. Throw a DoNotEmailOrLogException to cause this method to return 1 without emailing or logging the exception.
|
|
InitStatics ( SystemInitializer globalInitializer, string appName, bool isClientSideProgram, bool useRelativeInstallationPath = false, Func |
Initializes the system. This includes loading application settings from the configuration file. The application name should be scoped within the system. For non web applications, this method must be called directly from the main executable assembly and not from a supporting library. To debug this method, create a folder called C:\AnyoneFullControl and give Everyone full control. A file will appear in that folder explaining how far it got in init.
|
public static ExecuteAppWithStandardExceptionHandling ( System.Action method ) : int | ||
method | System.Action | |
return | int |
public static InitStatics ( SystemInitializer globalInitializer, string appName, bool isClientSideProgram, bool useRelativeInstallationPath = false, Func |
||
globalInitializer | SystemInitializer | The system's global initializer. Do not pass null. |
appName | string | |
isClientSideProgram | bool | |
useRelativeInstallationPath | bool | Pass true to use a relative path for the installation folder. This means that the folder will be located using /// the working directory rather than the assembly path. Use with caution. |
mainDataAccessStateGetter | Func |
A method that returns the current main data-access state whenever it is requested, including during this /// InitStatics call. Do not allow multiple threads to use the same state at the same time. If you pass null, the data-access subsystem will not be /// available in the application. |
return | void |