語言

ServiceCollectionExtensions.AddBotFrameworkAdapterIntegration 方法

定義

新增 as BotFrameworkAdapterIAdapterIntegration ,將用於整合層處理機器人請求。

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBotFrameworkAdapterIntegration(this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Bot.Builder.Integration.BotFrameworkOptions> configureAction = default);
static member AddBotFrameworkAdapterIntegration : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Bot.Builder.Integration.BotFrameworkOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddBotFrameworkAdapterIntegration (services As IServiceCollection, Optional configureAction As Action(Of BotFrameworkOptions) = Nothing) As IServiceCollection

參數

configureAction
Action<BotFrameworkOptions>

若提供此功能,將啟動以進一步配置整合。

傳回

操作完成後,這裡是關於此實例的參考。

備註

該車 BotFrameworkAdapter 將被登記為 單人。

注意:呼叫任何 AddBot 超載時,如果集合中沒有明確 IAdapterIntegration 註冊 services ,這些過載會嘗試隱式幫你註冊。

適用於

另請參閱