Jaa


ServiceCollectionExtensions.AddBotApplicationInsights Method

Definition

Overloads

AddBotApplicationInsights(IServiceCollection)

Adds and configures services for Application Insights to the IServiceCollection.

AddBotApplicationInsights(IServiceCollection, IConfiguration)

Adds and configures services for Application Insights to the IServiceCollection.

AddBotApplicationInsights(IServiceCollection, IBotTelemetryClient, String)

Adds and configures services for Application Insights to the IServiceCollection.

AddBotApplicationInsights(IServiceCollection, BotConfiguration, String)
Obsolete.

Adds and configures services for Application Insights to the IServiceCollection.

AddBotApplicationInsights(IServiceCollection)

Adds and configures services for Application Insights to the 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

Parameters

services
IServiceCollection

The IServiceCollection which specifies the contract for a collection of service descriptors.

Returns

A reference to this instance after the operation has completed.

Applies to

AddBotApplicationInsights(IServiceCollection, IConfiguration)

Adds and configures services for Application Insights to the 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

Parameters

services
IServiceCollection

The IServiceCollection which specifies the contract for a collection of service descriptors.

config
IConfiguration

Represents a set of key/value application configuration properties.

Returns

A reference to this instance after the operation has completed.

Applies to

AddBotApplicationInsights(IServiceCollection, IBotTelemetryClient, String)

Adds and configures services for Application Insights to the 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

Parameters

services
IServiceCollection

The IServiceCollection which specifies the contract for a collection of service descriptors.

botTelemetryClient
IBotTelemetryClient

Bot Telemetry Client that logs event information.

instrumentationKey
String

If Bot Telemetry Client is using Application Insights, provide the instrumentation key.

Returns

A reference to this instance after the operation has completed.

Applies to

AddBotApplicationInsights(IServiceCollection, BotConfiguration, String)

Caution

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

Adds and configures services for Application Insights to the 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

Parameters

services
IServiceCollection

The IServiceCollection which specifies the contract for a collection of service descriptors.

botConfiguration
BotConfiguration

Bot configuration that contains the Application Insights configuration information.

appInsightsServiceInstanceName
String

(OPTIONAL) Specifies a Application Insights instance name in the Bot configuration.

Returns

A reference to this instance after the operation has completed.

Attributes

Applies to