ServiceCollectionExtensions.AddBotFrameworkAdapterIntegration Metodo

Definizione

Aggiunge come oggetto BotFrameworkAdapter che IAdapterIntegration verrà usato dal livello di integrazione per l'elaborazione delle richieste del bot.

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

Parametri

configureAction
Action<BotFrameworkOptions>

Un callback facoltativo che, se specificato, verrà richiamato per configurare ulteriormente l'integrazione.

Restituisce

Riferimento a questa istanza dopo il completamento dell'operazione.

Commenti

Verrà BotFrameworkAdapter registrato come singleton.

NOTA: la chiamata di uno degli AddBot overload che tenterà di registrare in modo implicito questa operazione se non IAdapterIntegration è già registrata esplicitamente nella services raccolta.

Si applica a

Vedi anche