ServiceCollectionExtensions ServiceCollectionExtensions ServiceCollectionExtensions Class

Definition

Extension class for bot integration with ASP.NET Core 2.0 projects.

public static class ServiceCollectionExtensions
type ServiceCollectionExtensions = class
Public Module ServiceCollectionExtensions
Inheritance
ServiceCollectionExtensionsServiceCollectionExtensionsServiceCollectionExtensions

Methods

AddBot(IServiceCollection, Action) AddBot(IServiceCollection, Action) AddBot(IServiceCollection, Action)

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddBot<TBot> (this Microsoft.Extensions.DependencyInjection.IServiceCollection services, Action<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkOptions> configureAction = null) where TBot : class, Microsoft.Bot.IBot;
static member AddBot : Microsoft.Extensions.DependencyInjection.IServiceCollection * Action<Microsoft.Bot.Builder.Integration.AspNet.Core.BotFrameworkOptions> -> Microsoft.Extensions.DependencyInjection.IServiceCollection (requires 'Bot : null and 'Bot :> Microsoft.Bot.IBot)
<Extension()>
Public Function AddBot(Of TBot As {Class, IBot}) (services As IServiceCollection, Optional configureAction As Action(Of BotFrameworkOptions) = null) As IServiceCollection
Type Parameters
TBot
Parameters
configureAction
Action<BotFrameworkOptions>
Returns

Applies to

See Also