Compartilhar via


ServiceCollectionExtensions.AddBotApplicationInsights Método

Definição

Sobrecargas

AddBotApplicationInsights(IServiceCollection)

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

AddBotApplicationInsights(IServiceCollection, IConfiguration)

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

AddBotApplicationInsights(IServiceCollection, IBotTelemetryClient, String)

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

AddBotApplicationInsights(IServiceCollection, BotConfiguration, String)
Obsoleto.

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

AddBotApplicationInsights(IServiceCollection)

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotApplicationInsights (this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddBotApplicationInsights : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddBotApplicationInsights (services As IServiceCollection) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection que especifica o contrato para uma coleção de descritores de serviço.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a

AddBotApplicationInsights(IServiceCollection, IConfiguration)

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotApplicationInsights (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Extensions.Configuration.IConfiguration config);
static member AddBotApplicationInsights : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Extensions.Configuration.IConfiguration -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddBotApplicationInsights (services As IServiceCollection, config As IConfiguration) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection que especifica o contrato para uma coleção de descritores de serviço.

config
IConfiguration

Representa um conjunto de propriedades de configuração de aplicativo de chave/valor.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a

AddBotApplicationInsights(IServiceCollection, IBotTelemetryClient, String)

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotApplicationInsights (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Bot.Builder.IBotTelemetryClient botTelemetryClient, string instrumentationKey = default);
static member AddBotApplicationInsights : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Bot.Builder.IBotTelemetryClient * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddBotApplicationInsights (services As IServiceCollection, botTelemetryClient As IBotTelemetryClient, Optional instrumentationKey As String = Nothing) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection que especifica o contrato para uma coleção de descritores de serviço.

botTelemetryClient
IBotTelemetryClient

Bot Telemetry Client que registra informações de evento.

instrumentationKey
String

Se o Cliente de Telemetria do Bot estiver usando o Application Insights, forneça a chave de instrumentação.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Aplica-se a

AddBotApplicationInsights(IServiceCollection, BotConfiguration, String)

Cuidado

This method is obsolete and will be removed in a future version of the framework, use AddBotApplicationInsights(this IServiceCollection services, IConfiguration config) instead.

Adiciona e configura serviços para o Application Insights ao IServiceCollection.

[System.Obsolete("This method is obsolete and will be removed in a future version of the framework, use AddBotApplicationInsights(this IServiceCollection services, IConfiguration config) instead.", false)]
public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotApplicationInsights (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Microsoft.Bot.Configuration.BotConfiguration botConfiguration, string appInsightsServiceInstanceName = default);
[<System.Obsolete("This method is obsolete and will be removed in a future version of the framework, use AddBotApplicationInsights(this IServiceCollection services, IConfiguration config) instead.", false)>]
static member AddBotApplicationInsights : Microsoft.Extensions.DependencyInjection.IServiceCollection * Microsoft.Bot.Configuration.BotConfiguration * string -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddBotApplicationInsights (services As IServiceCollection, botConfiguration As BotConfiguration, Optional appInsightsServiceInstanceName As String = Nothing) As IServiceCollection

Parâmetros

services
IServiceCollection

O IServiceCollection que especifica o contrato para uma coleção de descritores de serviço.

botConfiguration
BotConfiguration

Configuração de bot que contém as informações de configuração do Application Insights.

appInsightsServiceInstanceName
String

(OPCIONAL) Especifica um nome de instância do Application Insights na configuração do Bot.

Retornos

Uma referência a essa instância após a operação ter sido concluída.

Atributos

Aplica-se a