ServiceCollectionExtensions.AddBotFrameworkAdapterIntegration Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Adds the BotFrameworkAdapter as the IAdapterIntegration which will be used by the integration layer for processing bot requests.
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
Parameters
- services
- IServiceCollection
The IServiceCollection.
- configureAction
- Action<BotFrameworkOptions>
A optional callback that, if provided, will be invoked to further configure the integration.
Returns
A reference to this instance after the operation has completed.
Remarks
The BotFrameworkAdapter will be registered as a singleton.
NOTE: Calling any of the AddBot
overloads those will attempt to implicitly register this for you if there is no explicit IAdapterIntegration already registered in the services
collection.