Language

TeamsBotAdapter(BotApplication, IHttpContextAccessor, ILogger) Constructor

Definition

Provides a Bot Framework adapter that enables compatibility between the Bot Framework SDK and a custom bot application implementation.

public TeamsBotAdapter(Microsoft.Teams.Core.BotApplication botApplication, Microsoft.AspNetCore.Http.IHttpContextAccessor? httpContextAccessor = default, Microsoft.Extensions.Logging.ILogger? logger = default);
new Microsoft.Teams.Apps.BotBuilder.TeamsBotAdapter : Microsoft.Teams.Core.BotApplication * Microsoft.AspNetCore.Http.IHttpContextAccessor * Microsoft.Extensions.Logging.ILogger -> Microsoft.Teams.Apps.BotBuilder.TeamsBotAdapter
Public Sub New (botApplication As BotApplication, Optional httpContextAccessor As IHttpContextAccessor = Nothing, Optional logger As ILogger = Nothing)

Parameters

botApplication
BotApplication

The Teams bot application instance.

httpContextAccessor
IHttpContextAccessor

The HTTP context accessor.

logger
ILogger

The logger instance.

Remarks

Use this adapter to bridge Bot Framework turn contexts and activities with a custom bot application. This class is intended for scenarios where integration with non-standard bot runtimes or legacy systems is required.

Applies to