C# 클래스 EnterpriseWebLibrary.GlobalInitializationOps

파일 보기 프로젝트 열기: enduracode/enterprise-web-library 1 사용 예제들

Private Properties

프로퍼티 타입 설명

공개 메소드들

메소드 설명
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 mainDataAccessStateGetter = null ) : void

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.

메소드 상세

CleanUpStatics() 공개 정적인 메소드

Performs cleanup activities so the application can be shut down.
public static CleanUpStatics ( ) : void
리턴 void

ExecuteAppWithStandardExceptionHandling() 공개 정적인 메소드

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.
public static ExecuteAppWithStandardExceptionHandling ( System.Action method ) : int
method System.Action
리턴 int

InitStatics() 공개 정적인 메소드

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 InitStatics ( SystemInitializer globalInitializer, string appName, bool isClientSideProgram, bool useRelativeInstallationPath = false, Func mainDataAccessStateGetter = null ) : void
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.
리턴 void