ExtensibilityDiagnosticsLoggerConfiguration.CreateAsync Method

Definition

Overloads

CreateAsync(ExtensibilityDiagnosticsArguments, JoinableTaskFactory, CancellationToken)

C#
public static System.Threading.Tasks.Task<Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsLoggerConfiguration> CreateAsync(Microsoft.VisualStudio.Shell.Internal.ExtensibilityDiagnosticsArguments args, Microsoft.VisualStudio.Threading.JoinableTaskFactory jtf, System.Threading.CancellationToken cancellationToken);

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

Applies to

Visual Studio SDK 2022
Produkt Versiounen
Visual Studio SDK 2022

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

C#
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);

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

Visual Studio SDK 2022
Produkt Versiounen
Visual Studio SDK 2022