GlobalBrokeredServiceContainer.ExportDiagnosticsAsync Metoda
Definice
Důležité
Některé informace platí pro předběžně vydaný produkt, který se může zásadně změnit, než ho výrobce nebo autor vydá. Microsoft neposkytuje žádné záruky, výslovné ani předpokládané, týkající se zde uváděných informací.
Zapíše do souboru JSON spoustu diagnostických dat.
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
override this.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
Parametry
- filePath
- String
Cesta k souboru JSON, který se má zapsat. Pokud už existuje, bude přepsán.
- serviceAudience
- ServiceAudience
Cílová skupina.
- cancellationToken
- CancellationToken
Token zrušení.
Návraty
Úkol, který se dokončí po dokončení zápisu.
Implementuje
Poznámky
Hrubé schéma souboru JSON:
{
"perspectiveAudience": "Process",
"activeRemoteSources" : [ "TrustedServer" ],
"brokeredServices": [
{
name: "Calculator",
version: "1.0",
audience: "Local, Process, Guest",
allowGuestClients: false,
profferingPackage: "{28074D43-B498-47FE-97CF-4A182DA71C59}"
profferedLocally: true,
activeSource: "TrustedServer",
includedByRemoteSourceManifest: true
},
{
// ...
},
// ...
]
}