Partilhar via


VsExtensionMetadataService.CreateAsync Method

Definition

Creates an instance of VsExtensionMetadataService.

public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.IVsExtensionMetadataService> CreateAsync (string logId, string featureArea, Microsoft.ServiceHub.Framework.IServiceBroker serviceBroker, Microsoft.VisualStudio.Threading.JoinableTaskFactory jtf, System.Diagnostics.TraceSource? traceSource, System.Threading.CancellationToken cancellationToken);
static member CreateAsync : string * string * Microsoft.ServiceHub.Framework.IServiceBroker * Microsoft.VisualStudio.Threading.JoinableTaskFactory * System.Diagnostics.TraceSource * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.IVsExtensionMetadataService>
Public Shared Function CreateAsync (logId As String, featureArea As String, serviceBroker As IServiceBroker, jtf As JoinableTaskFactory, traceSource As TraceSource, cancellationToken As CancellationToken) As Task(Of IVsExtensionMetadataService)

Parameters

logId
String

The unique id that should be used for the LogHub log.

featureArea
String

The name of the feature area that will be logging diagnostics. This will be displayed in the UI.

serviceBroker
IServiceBroker

Used to query for brokered services.

jtf
JoinableTaskFactory

A JoinableTaskFactory used for threading.

traceSource
TraceSource

An optional TraceSource that a listener will be added to to send logging to the diagnostics service.

cancellationToken
CancellationToken

A token to signal cancellation.

Returns

The extension metadata configuration object that can be used to get extension metadata and report diagnostics.

Applies to