Compartilhar via


ExtensibilityDiagnosticManager<T> Class

Definition

Represents a subcategory that will be registered with the IExtensibilityDiagnosticsService.

public abstract class ExtensibilityDiagnosticManager<T> : Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticReporter<T,Microsoft.VisualStudio.Shell.Internal.ExtensibilityPointDiagnosticConfiguration>, IDisposable, Microsoft.VisualStudio.Shell.Internal.IExtensibilityDiagnosticManager
type ExtensibilityDiagnosticManager<'T> = class
    inherit ExtensibilityDiagnosticReporter<'T, ExtensibilityPointDiagnosticConfiguration>
    interface IExtensibilityDiagnosticManager
    interface IExtensibilityDiagnosticEventManager
    interface IDisposable
Public MustInherit Class ExtensibilityDiagnosticManager(Of T)
Inherits ExtensibilityDiagnosticReporter(Of T, ExtensibilityPointDiagnosticConfiguration)
Implements IDisposable, IExtensibilityDiagnosticManager

Type Parameters

T

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

Inheritance
Implements

Constructors

ExtensibilityDiagnosticManager<T>(ExtensibilityDiagnosticsLoggerConfiguration)

Initializes a new instance of the ExtensibilityDiagnosticManager<T> class.

Properties

Configuration System.Object.Configuration
DiagnosticsEnabled

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

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
DiagnosticsLogger

Gets the configuration object used to log diagnostics.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
DiagnosticsSubcategory

Gets the subcategory that this is managing.

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.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)

Methods

CreateAsync<TManager>(ExtensibilityDiagnosticsLoggerConfiguration, Func<ExtensibilityDiagnosticsLoggerConfiguration,TManager>, CancellationToken)

Creates and initializes an instance of TManager.

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

DisposeNativeResources()

Allows derived classes to provide custom dispose handling for native resources

(Inherited from DisposableObject)
GetItemName(TItem)

Gets the unique identifier of an item.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
GetMetadataForItemAsync(TItem, CancellationToken)

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

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
InitializeAsync(CancellationToken)

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

InitializeDiagnosticEvents()

Creates the set of IExtensibilityDiagnosticEventReporter that the will extensibility point registers.

InitializeProperties()

Initialize the dictionary of registered diagnostic properties.

(Inherited from ExtensibilityDiagnosticReporter<TItem,VConfiguration>)
ReportErrorAsync(ExtensibilityDiagnosticErrorInfo, CancellationToken)

Report an error with the IExtensibilityDiagnosticsService.

ReportEventAsync(ExtensibilityDiagnosticEventContext, CancellationToken)

Report the instance of an event with the IExtensibilityDiagnosticsService.

ReportExtensionItemDiscoveredAsync(Object, ExtensionIdentificationToken, CancellationToken)
Obsolete.

Reports a new extension to the IExtensibilityDiagnosticsService.

ReportExtensionItemDiscoveredAsync(Object, String, CancellationToken)

Reports a new extension to the IExtensibilityDiagnosticsService.

ReportExtensionItemDiscoveredCoreAsync(T, String, CancellationToken)

The core logic of ReportExtensionItemDiscoveredAsync(Object, String, CancellationToken).

ReportExtensionItemPropertyUpdatedAsync(Object, String, String, CancellationToken)

Reports a property update to the IExtensibilityDiagnosticsService.

ReportExtensionItemPropertyUpdatedCoreAsync(T, String, String, CancellationToken)

The core logic of ReportExtensionItemPropertyUpdatedAsync(Object, String, String, CancellationToken).

ReportExtensionItemRemovedAsync(Object, CancellationToken)

Removes an item from the IExtensibilityDiagnosticsService.

ReportExtensionItemRemovedCoreAsync(T, CancellationToken)

The core logic of ReportExtensionItemRemovedAsync(Object, CancellationToken).

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