IBrokeredServiceContainerDiagnostics.ExportDiagnosticsAsync Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Writes a bunch of diagnostic data to a JSON file.
public System.Threading.Tasks.Task ExportDiagnosticsAsync (string filePath, Microsoft.VisualStudio.Shell.ServiceBroker.ServiceAudience serviceAudience, System.Threading.CancellationToken cancellationToken = default);
abstract member ExportDiagnosticsAsync : string * Microsoft.VisualStudio.Shell.ServiceBroker.ServiceAudience * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function ExportDiagnosticsAsync (filePath As String, serviceAudience As ServiceAudience, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- filePath
- String
The path to the JSON file to be written. If it already exists it will be overwritten.
- serviceAudience
- ServiceAudience
The audience to consider is querying for services.
- cancellationToken
- CancellationToken
A cancellation token.
Returns
A task that completes when the writing is done.