Dela via


VsExtensionMetadataService.CreateAsync Method

Definition

Overloads

CreateAsync(ExtensibilityDiagnosticsArguments, JoinableTaskFactory, CancellationToken)

Creates an instance of VsExtensionMetadataService.

CreateAsync(String, String, IServiceBroker, JoinableTaskFactory, TraceSource, CancellationToken)

Creates an instance of VsExtensionMetadataService.

CreateAsync(ExtensibilityDiagnosticsArguments, JoinableTaskFactory, CancellationToken)

Creates an instance of VsExtensionMetadataService.

public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.IVsExtensionMetadataService> CreateAsync (Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsArguments args, Microsoft.VisualStudio.Threading.JoinableTaskFactory jtf, System.Threading.CancellationToken cancellationToken);
static member CreateAsync : Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsArguments * Microsoft.VisualStudio.Threading.JoinableTaskFactory * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.IVsExtensionMetadataService>
Public Shared Function CreateAsync (args As ExtensibilityDiagnosticsArguments, jtf As JoinableTaskFactory, cancellationToken As CancellationToken) As Task(Of IVsExtensionMetadataService)

Parameters

args
ExtensibilityDiagnosticsArguments

Arguments used to initialize the diagnostics.

jtf
JoinableTaskFactory

A JoinableTaskFactory used for threading.

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

CreateAsync(String, String, IServiceBroker, JoinableTaskFactory, TraceSource, CancellationToken)

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