Language

TeamsBotFrameworkHttpAdapter Class

Definition

Provides a compatibility adapter for processing bot activities and HTTP requests using legacy middleware and bot framework interfaces.

public class TeamsBotFrameworkHttpAdapter : Microsoft.Teams.Apps.BotBuilder.TeamsBotAdapter, Microsoft.Bot.Builder.Integration.AspNet.Core.IBotFrameworkHttpAdapter
type TeamsBotFrameworkHttpAdapter = class
    inherit TeamsBotAdapter
    interface IBotFrameworkHttpAdapter
Public Class TeamsBotFrameworkHttpAdapter
Inherits TeamsBotAdapter
Implements IBotFrameworkHttpAdapter
Inheritance
TeamsBotFrameworkHttpAdapter
Implements

Remarks

Use this adapter to bridge between legacy bot framework middleware and newer bot application models. The adapter allows registration of middleware and error handling delegates, and supports processing HTTP requests and continuing conversations. Thread safety is not guaranteed; instances should not be shared across concurrent requests.

Constructors

Name Description
TeamsBotFrameworkHttpAdapter(BotApplication, IHttpContextAccessor, ILogger)

Creates a new instance of the TeamsBotFrameworkHttpAdapter class.

Methods

Name Description
ContinueConversationAsync(String, ConversationReference, BotCallbackHandler, CancellationToken)

Continues an existing bot conversation by invoking the specified callback with the provided conversation reference.

DeleteActivityAsync(ITurnContext, ConversationReference, CancellationToken)

Deletes an activity from the conversation.

(Inherited from TeamsBotAdapter)
ProcessAsync(HttpRequest, HttpResponse, IBot, CancellationToken)

Processes an incoming HTTP request and generates an appropriate HTTP response using the provided bot instance.

SendActivitiesAsync(ITurnContext, Activity[], CancellationToken)

Sends a set of activities to the conversation.

(Inherited from TeamsBotAdapter)
UpdateActivityAsync(ITurnContext, Activity, CancellationToken)

Updates an existing activity in the conversation.

(Inherited from TeamsBotAdapter)

Applies to