• EnglishEspañol日本語한국어Português
  • EntrarComeçar agora

Esta tradução de máquina é fornecida para sua comodidade.

In the event of any inconsistency between the English version and the translated version, the English versionwill take priority. Please visit this page for more information.

Criar um problema

StartAgent (API do agente .NET)

Sintaxe

NewRelic.Api.Agent.NewRelic.StartAgent()

Inicie o agente se ele ainda não tiver sido iniciado. Geralmente desnecessário.

Requisitos

Versão do agente 5.0.136.0 ou superior.

Compatível com todos os tipos de aplicativos.

Descrição

Inicia o agente se ainda não tiver sido iniciado. Essa chamada geralmente é desnecessária, pois o agente inicia automaticamente quando atinge um método instrumentado, a menos que você desative autoStart. Se você usar SetApplicationName(), certifique-se de definir o nome do aplicativo before para iniciar o agente.

Dica

Este método inicia o agente de forma assíncrona (ou seja, não bloqueará a inicialização do aplicativo), a menos que você habilite syncStartup ou sendDataOnExit.

Exemplos

NewRelic.Api.Agent.NewRelic.StartAgent();
Copyright © 2024 New Relic Inc.

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.