Partager via


ExtensibilityDiagnosticReporter<TItem,VConfiguration> Class

Definition

Represents a diagnostic that will be registered with the IExtensibilityDiagnosticsService.

public abstract class ExtensibilityDiagnosticReporter<TItem,VConfiguration> : Microsoft.VisualStudio.PlatformUI.DisposableObject, Microsoft.VisualStudio.Shell.Internal.IExtensibilityDiagnosticReporter<VConfiguration> where VConfiguration : ExtensibilityDiagnosticConfiguration
type ExtensibilityDiagnosticReporter<'Item, 'VConfiguration (requires 'VConfiguration :> ExtensibilityDiagnosticConfiguration)> = class
    inherit DisposableObject
    interface IExtensibilityDiagnosticReporter<'VConfiguration (requires 'VConfiguration :> ExtensibilityDiagnosticConfiguration)>
Public MustInherit Class ExtensibilityDiagnosticReporter(Of TItem, VConfiguration)
Inherits DisposableObject
Implements IExtensibilityDiagnosticReporter(Of VConfiguration)

Type Parameters

TItem

The type of object that contains the properties to log as diagnostics.

VConfiguration

The type of configuration that defines the diagnostics reporter.

Inheritance
ExtensibilityDiagnosticReporter<TItem,VConfiguration>
Derived
Implements

Constructors

ExtensibilityDiagnosticReporter<TItem,VConfiguration>(ExtensibilityDiagnosticsLoggerConfiguration)

Initializes a new instance of the ExtensibilityDiagnosticReporter<TItem,VConfiguration> class.

Properties

Configuration

Gets the configuration associated with the diagnostic.

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)
PropertySelectors

Gets the set of properties registered for this diagnostic and functions for how to extract the properties out of the objects mapped to the diagnostic.

Methods

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)
GetItemName(TItem)

Gets the unique identifier of an item.

GetMetadataForItemAsync(TItem, CancellationToken)

Gets the values of the registered properties from the supplied item.

InitializeProperties()

Initialize the dictionary of registered diagnostic properties.

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