ServiceCollectionExtensions.AddBotFrameworkAdapterIntegration Metodo
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
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
- services
- IServiceCollection
Oggetto IServiceCollection.
- 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.