C# 클래스 CK.AppRecovery.ApplicationRecovery

파일 보기 프로젝트 열기: Invenietis/ck-certified

Private Properties

프로퍼티 타입 설명
CheckForRecoveryCancel void
CurrentDomain_UnhandledException void
HandleApplicationCrashByOS int
RaiseApplicationCrashedEvent void

공개 메소드들

메소드 설명
Initialize ( ) : bool

Registers the application for notification by windows of a failure if IsOSRecoveryAvailable is true.

The AppDomain.CurrentDomain.UnhandledException event is listened and react to such unhandled exceptions int two different ways: If IsOSRecoveryAvailable is true, the exception is memorized and will be dumped out to the crash log during application recovery. If it is false, this immediately triggers the ApplicationCrashed event.

Windows forms is configured to let unhandled execptions be thrown thanks to a call to Application.SetUnhandledExceptionMode with UnhandledExceptionMode.ThrowException.

This method also initializes the CurrentCrashCount from the Environment.GetCommandLineArgs (if any).

비공개 메소드들

메소드 설명
CheckForRecoveryCancel ( object o ) : void

Checks to see if the user has cancelled the recovery.

CurrentDomain_UnhandledException ( object sender, UnhandledExceptionEventArgs e ) : void
HandleApplicationCrashByOS ( IntPtr pvParameter ) : int

This is the callback function that is executed in the event of the application crashing.

RaiseApplicationCrashedEvent ( ) : void

메소드 상세

Initialize() 공개 정적인 메소드

Registers the application for notification by windows of a failure if IsOSRecoveryAvailable is true.

The AppDomain.CurrentDomain.UnhandledException event is listened and react to such unhandled exceptions int two different ways: If IsOSRecoveryAvailable is true, the exception is memorized and will be dumped out to the crash log during application recovery. If it is false, this immediately triggers the ApplicationCrashed event.

Windows forms is configured to let unhandled execptions be thrown thanks to a call to Application.SetUnhandledExceptionMode with UnhandledExceptionMode.ThrowException.

This method also initializes the CurrentCrashCount from the Environment.GetCommandLineArgs (if any).

public static Initialize ( ) : bool
리턴 bool