Partager via


ExtensibilityDiagnosticEventManager Class

Definition

Represents a collection of IExtensibilityDiagnosticEventReporter that will be registered with the IExtensibilityDiagnosticsService.

public class ExtensibilityDiagnosticEventManager : Microsoft.VisualStudio.PlatformUI.DisposableObject, Microsoft.VisualStudio.Shell.Internal.IExtensibilityDiagnosticEventManager
type ExtensibilityDiagnosticEventManager = class
    inherit DisposableObject
    interface IExtensibilityDiagnosticEventManager
Public Class ExtensibilityDiagnosticEventManager
Inherits DisposableObject
Implements IExtensibilityDiagnosticEventManager
Inheritance
ExtensibilityDiagnosticEventManager
Implements

Constructors

ExtensibilityDiagnosticEventManager(IReadOnlyList<IExtensibilityDiagnosticEventReporter>, ExtensibilityDiagnosticsLoggerConfiguration)

Initializes a new instance of the ExtensibilityDiagnosticEventManager class.

Properties

DiagnosticsEnabled

Gets a value indicating whether or not diagnostics collections has been enabled.

DiagnosticsLogger

Gets the configuration object used to log diagnostics.

IsDisposed

Returns whether the object has been disposed once, protects against double disposal

(Inherited from DisposableObject)

Methods

CreateAsync(IReadOnlyList<IExtensibilityDiagnosticEventReporter>, ExtensibilityDiagnosticsLoggerConfiguration, CancellationToken)

Initializes a new instance of the ExtensibilityDiagnosticEventManager class.

Dispose()

Disposes the current object then suppresses further finalization.

(Inherited from DisposableObject)
Dispose(Boolean)

Standard virtual overload for IDisposable pattern

(Inherited from DisposableObject)
DisposeManagedResources()

Allows derived classes to provide custom dispose handling for managed resources

(Inherited from DisposableObject)
DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources

(Inherited from DisposableObject)
InitializeAsync(CancellationToken)

Completes the initialization of the object asynchronously. This must be called immediately after creating an instance of this object.

ReportErrorAsync(ExtensibilityDiagnosticErrorInfo, CancellationToken)

Report an error with the IExtensibilityDiagnosticsService.

ReportEventAsync(ExtensibilityDiagnosticEventContext, CancellationToken)

Report the instance of an event with the IExtensibilityDiagnosticsService.

ThrowIfDisposed()

Throws an ObjectDisposedException if this object has been disposed

(Inherited from DisposableObject)

Events

Disposing

Raised when the event is being disposed, while it is still accessible.

(Inherited from DisposableObject)

Applies to