Condividi tramite


GlobalBrokeredServiceContainer.ExportDiagnosticsAsync Metodo

Definizione

Scrive un gruppo di dati di diagnostica in un file JSON.

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

Parametri

filePath
String

Percorso del file JSON da scrivere. Se esiste già, verrà sovrascritto.

serviceAudience
ServiceAudience

Pubblico.

cancellationToken
CancellationToken

Token di annullamento.

Restituisce

Attività che viene completata al termine della scrittura.

Implementazioni

Commenti

Schema approssimativo del file 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
    },
    {
      // ...
    },
    // ...
  ]
}

Si applica a