ServiceCollectionExtensions 類別
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
警告
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 |
| AddBot<TBot>(IServiceCollection, Func<IServiceProvider,TBot>, Action<BotFrameworkOptions>) |
已淘汰.
在 中加入並可選擇配置 a |
| AddBot<TBot>(IServiceCollection, TBot, Action<BotFrameworkOptions>) |
已淘汰.
新增並可選擇性地配置一個單例 |
| AddBotFrameworkAdapterIntegration(IServiceCollection, Action<BotFrameworkOptions>) |
已淘汰.
新增 as BotFrameworkAdapterIAdapterIntegration ,將用於整合層處理機器人請求。 |