Language

CompatHostingExtensions.AddTeamsBotFrameworkHttpAdapter Method

Definition

Overloads

Name Description
AddTeamsBotFrameworkHttpAdapter(IServiceCollection)

Registers the compatibility bot adapter and related services required for Bot Framework HTTP integration with the application's dependency injection container.

AddTeamsBotFrameworkHttpAdapter(IHostApplicationBuilder)

Adds compatibility adapter services to the application's dependency injection container.

AddTeamsBotFrameworkHttpAdapter(IServiceCollection)

Registers the compatibility bot adapter and related services required for Bot Framework HTTP integration with the application's dependency injection container.

public static Microsoft.Extensions.DependencyInjection.IServiceCollection AddTeamsBotFrameworkHttpAdapter(this Microsoft.Extensions.DependencyInjection.IServiceCollection services);
static member AddTeamsBotFrameworkHttpAdapter : Microsoft.Extensions.DependencyInjection.IServiceCollection -> Microsoft.Extensions.DependencyInjection.IServiceCollection
<Extension()>
Public Function AddTeamsBotFrameworkHttpAdapter (services As IServiceCollection) As IServiceCollection

Parameters

services
IServiceCollection

The service collection to which the compatibility adapter and related services will be added. Must not be null.

Returns

The same IServiceCollection instance provided in services, with the compatibility adapter and related services registered.

Remarks

Call this method during application startup to enable Bot Framework HTTP endpoint support using the compatibility adapter. This method should be invoked before building the service provider.

Applies to

AddTeamsBotFrameworkHttpAdapter(IHostApplicationBuilder)

Adds compatibility adapter services to the application's dependency injection container.

public static Microsoft.Extensions.Hosting.IHostApplicationBuilder AddTeamsBotFrameworkHttpAdapter(this Microsoft.Extensions.Hosting.IHostApplicationBuilder builder);
static member AddTeamsBotFrameworkHttpAdapter : Microsoft.Extensions.Hosting.IHostApplicationBuilder -> Microsoft.Extensions.Hosting.IHostApplicationBuilder
<Extension()>
Public Function AddTeamsBotFrameworkHttpAdapter (builder As IHostApplicationBuilder) As IHostApplicationBuilder

Parameters

builder
IHostApplicationBuilder

The host application builder to which the compatibility adapter services will be added. Cannot be null.

Returns

The same builder instance, enabling method chaining.

Remarks

This method registers services required for compatibility scenarios. It can be called multiple times without adverse effects.

Applies to