C# Class Microsoft.ApplicationInsights.WindowsServer.UnobservedExceptionTelemetryModule

The module subscribed to TaskScheduler.UnobservedTaskException to send exceptions to ApplicationInsights.
Inheritance: ITelemetryModule, IDisposable
Afficher le fichier Open project: Microsoft/ApplicationInsights-dotnet-server Class Usage Examples

Méthodes publiques

Méthode 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

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

Method Details

Dispose() public méthode

Disposing TaskSchedulerOnUnobservedTaskException instance.
public Dispose ( ) : void
Résultat void

Initialize() public méthode

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.
Résultat void

UnobservedExceptionTelemetryModule() public méthode

Initializes a new instance of the UnobservedExceptionTelemetryModule class.
public UnobservedExceptionTelemetryModule ( ) : System
Résultat System