Language

CompatHostingExtensions Class

Definition

Provides extension methods for registering compatibility adapters and related services to support legacy bot hosting scenarios.

public static class CompatHostingExtensions
type CompatHostingExtensions = class
Public Module CompatHostingExtensions
Inheritance
CompatHostingExtensions

Remarks

These extension methods simplify the integration of compatibility adapters into modern hosting environments by adding required services to the dependency injection container. Use these methods to enable legacy bot functionality within applications built on the current hosting model.

Methods

Name Description
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.

Applies to