Freigeben über


ExtensibilityDiagnosticsLoggerConfiguration.CreateAsync Method

Definition

public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsLoggerConfiguration> 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.ExtensibilityDiagnosticsLoggerConfiguration>
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 ExtensibilityDiagnosticsLoggerConfiguration)

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 diagnostics configuration object that can be used to report diagnostics.

Applies to