語言

ServiceCollectionExtensions 類別

定義

警告

Use CloudAdapter with ConfigurationBotFrameworkAuthentication instead to configure bot runtime.

一組擴充方法IServiceCollection,提供對搭載 .NET Core 的主機機器人的支援。

[System.Obsolete("Use `CloudAdapter` with `ConfigurationBotFrameworkAuthentication` instead to configure bot runtime.", false)]
public static class ServiceCollectionExtensions
[<System.Obsolete("Use `CloudAdapter` with `ConfigurationBotFrameworkAuthentication` instead to configure bot runtime.", false)>]
type ServiceCollectionExtensions = class
Public Module ServiceCollectionExtensions
繼承
ServiceCollectionExtensions
屬性

方法

名稱 Description
AddBot<TBot>(IServiceCollection, Action<BotFrameworkOptions>)
已淘汰.

在 中加入並可選擇配置 a TBot 到 IServiceCollection。

AddBot<TBot>(IServiceCollection, Func<IServiceProvider,TBot>, Action<BotFrameworkOptions>)
已淘汰.

在 中加入並可選擇配置 a TBot 到 IServiceCollection。

AddBot<TBot>(IServiceCollection, TBot, Action<BotFrameworkOptions>)
已淘汰.

新增並可選擇性地配置一個單例 bot 實例到 IServiceCollection。

AddBotFrameworkAdapterIntegration(IServiceCollection, Action<BotFrameworkOptions>)
已淘汰.

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

適用於

另請參閱