C# Class Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule

The module subscribed to TaskScheduler.UnobservedTaskException to send exceptions to ApplicationInsights.
Inheritance: ITelemetryModule, IDisposable
显示文件 Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Public Methods

Method Description
Dispose ( ) : void

Disposing TaskSchedulerOnUnobservedTaskException instance.

Initialize ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : void

Initializes the telemetry module.

UnobservedExceptionTelemetryModule ( ) : System

Initializes a new instance of the UnobservedExceptionTelemetryModule class.

Private Methods

Method Description
TaskSchedulerOnUnobservedTaskException ( object sender, System.Threading.Tasks.UnobservedTaskExceptionEventArgs unobservedTaskExceptionEventArgs ) : void
UnobservedExceptionTelemetryModule ( Action registerAction, Action unregisterAction ) : System

Method Details

Dispose() public method

Disposing TaskSchedulerOnUnobservedTaskException instance.
public Dispose ( ) : void
return void

Initialize() public method

Initializes the telemetry module.
public Initialize ( Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration configuration ) : void
configuration Microsoft.ApplicationInsights.Extensibility.TelemetryConfiguration Telemetry Configuration used for creating TelemetryClient for sending exceptions to ApplicationInsights.
return void

UnobservedExceptionTelemetryModule() public method

Initializes a new instance of the UnobservedExceptionTelemetryModule class.
public UnobservedExceptionTelemetryModule ( ) : System
return System