ServiceCollectionExtensions Class

Definition

Caution

Use CloudAdapter with ConfigurationBotFrameworkAuthentication instead to configure bot runtime.

A set of extension methods for IServiceCollection which provide support for hosting bots with .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
Inheritance
ServiceCollectionExtensions
Attributes

Methods

AddBot<TBot>(IServiceCollection, Action<BotFrameworkOptions>)

Adds and optionally configures a TBot to the IServiceCollection.

AddBot<TBot>(IServiceCollection, Func<IServiceProvider,TBot>, Action<BotFrameworkOptions>)

Adds and optionally configures a TBot to the IServiceCollection.

AddBot<TBot>(IServiceCollection, TBot, Action<BotFrameworkOptions>)

Adds and optionally configures a singleton bot instance to the IServiceCollection.

AddBotFrameworkAdapterIntegration(IServiceCollection, Action<BotFrameworkOptions>)

Adds the BotFrameworkAdapter as the IAdapterIntegration which will be used by the integration layer for processing bot requests.

Applies to

See also