Idioma

ServiceCollectionExtensions.AddBotFrameworkAdapterIntegration Método

Definição

Adiciona o BotFrameworkAdapter as, IAdapterIntegration que será usado pela camada de integração para processar pedidos de bots.

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

Parâmetros

configureAction
Action<BotFrameworkOptions>

Um callback opcional que, se for, será invocado para configurar ainda mais a integração.

Devoluções

Uma referência a esta instância após a operação ter terminado.

Observações

Serão BotFrameworkAdapter registados como singleton.

NOTA: Chamar qualquer um dos AddBot overloads desses tentará registar implicitamente isto por si se não houver nenhum explicitamente IAdapterIntegration registado na services coleção.

Aplica-se a

Ver também