C# 클래스 Microsoft.HockeyApp.Extensibility.Windows.UnhandledExceptionTelemetryModule

A module that deals in Exception events and will create ExceptionTelemetry objects when triggered.
상속: IUnhandledExceptionTelemetryModule
파일 보기 프로젝트 열기: bitstadium/HockeySDK-Windows

Private Properties

프로퍼티 타입 설명
CoreApplication_UnhandledErrorDetected void
GetProcessorArchitecture ushort
GetStrackTrace string
TaskScheduler_UnobservedTaskException void
UnhandledExceptionTelemetryModule System

공개 메소드들

메소드 설명
CreateCrashTelemetry ( Exception exception, ExceptionHandledAt handledAt ) : ITelemetry

Creates CrashTelemetry instance.

Dispose ( ) : void

Unsubscribe from the Application.UnhandledException event.

Initialize ( ) : void

Subscribes to unhandled event notifications. We are using CoreApplication.UnhandledErrorDetected instead of Application.UnhandledException because Application.UnhandledException is not idempotent and the exception object may be read only once. The second time it is read, it will return empty System.Exception without call stack. It is OS Bug 560663, 7133918 that must be fixed in Windows Redstone 2 (~2017).

비공개 메소드들

메소드 설명
CoreApplication_UnhandledErrorDetected ( object sender, UnhandledErrorDetectedEventArgs e ) : void
GetProcessorArchitecture ( ) : ushort

Get the processor architecture of this computer.

This method cannot be used in SDK other than UWP, because it is using NativeMethods.GetNativeSystemInfo(ref NativeMethods._SYSTEM_INFO) API, which violates Windows Phone certification requirements for WinRT platform, see https://www.yammer.com/microsoft.com/#/uploaded_files/59829318?threadId=718448267

GetStrackTrace ( Exception e ) : string
TaskScheduler_UnobservedTaskException ( object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs e ) : void
UnhandledExceptionTelemetryModule ( ) : System

Initializes a new instance of the UnhandledExceptionTelemetryModule class.

메소드 상세

CreateCrashTelemetry() 공개 메소드

Creates CrashTelemetry instance.
public CreateCrashTelemetry ( Exception exception, ExceptionHandledAt handledAt ) : ITelemetry
exception System.Exception The exception to initialize the class with.
handledAt ExceptionHandledAt Determines whether exception is handled or unhandled.
리턴 ITelemetry

Dispose() 공개 메소드

Unsubscribe from the Application.UnhandledException event.
public Dispose ( ) : void
리턴 void

Initialize() 공개 메소드

Subscribes to unhandled event notifications. We are using CoreApplication.UnhandledErrorDetected instead of Application.UnhandledException because Application.UnhandledException is not idempotent and the exception object may be read only once. The second time it is read, it will return empty System.Exception without call stack. It is OS Bug 560663, 7133918 that must be fixed in Windows Redstone 2 (~2017).
public Initialize ( ) : void
리턴 void