ServiceCollectionExtensions.AddBotApplicationInsights 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
AddBotApplicationInsights(IServiceCollection) |
將 Application Insights 的服務新增和設定至 IServiceCollection 。 |
AddBotApplicationInsights(IServiceCollection, IConfiguration) |
將 Application Insights 的服務新增和設定至 IServiceCollection 。 |
AddBotApplicationInsights(IServiceCollection, IBotTelemetryClient, String) |
將 Application Insights 的服務新增和設定至 IServiceCollection 。 |
AddBotApplicationInsights(IServiceCollection, BotConfiguration, String) |
已淘汰.
將 Application Insights 的服務新增和設定至 IServiceCollection 。 |
AddBotApplicationInsights(IServiceCollection)
將 Application Insights 的服務新增和設定至 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
參數
- services
- IServiceCollection
, IServiceCollection 指定服務描述項集合的合約。
傳回
完成作業之後,這個執行個體的參考。
適用於
AddBotApplicationInsights(IServiceCollection, IConfiguration)
將 Application Insights 的服務新增和設定至 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
參數
- services
- IServiceCollection
, IServiceCollection 指定服務描述項集合的合約。
- config
- IConfiguration
表示一組索引鍵/值應用程式組態屬性。
傳回
完成作業之後,這個執行個體的參考。
適用於
AddBotApplicationInsights(IServiceCollection, IBotTelemetryClient, String)
將 Application Insights 的服務新增和設定至 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
參數
- services
- IServiceCollection
, IServiceCollection 指定服務描述項集合的合約。
- botTelemetryClient
- IBotTelemetryClient
記錄事件資訊的 Bot 遙測用戶端。
- instrumentationKey
- String
如果 Bot 遙測用戶端使用 Application Insights,請提供檢測金鑰。
傳回
完成作業之後,這個執行個體的參考。
適用於
AddBotApplicationInsights(IServiceCollection, BotConfiguration, String)
警告
This method is obsolete and will be removed in a future version of the framework, use AddBotApplicationInsights(this IServiceCollection services, IConfiguration config) instead.
將 Application Insights 的服務新增和設定至 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
參數
- services
- IServiceCollection
, IServiceCollection 指定服務描述項集合的合約。
- botConfiguration
- BotConfiguration
包含 Application Insights 組態資訊的 Bot 組態。
- appInsightsServiceInstanceName
- String
(選擇性) 在 Bot 組態中指定 Application Insights 實例名稱。
傳回
完成作業之後,這個執行個體的參考。
- 屬性