Share via


CommandResponseMiddleware Class

Definition

Middleware to handle message activity from Teams.

public class CommandResponseMiddleware : Microsoft.Bot.Builder.IMiddleware
type CommandResponseMiddleware = class
    interface IMiddleware
Public Class CommandResponseMiddleware
Implements IMiddleware
Inheritance
CommandResponseMiddleware
Implements

Constructors

CommandResponseMiddleware(IList<ITeamsCommandHandler>)

Initializes a new instance of the CommandResponseMiddleware class.

Properties

CommandHandlers

Gets or sets the list of ITeamsCommandHandler instances registered with the middleware.

Methods

OnTurnAsync(ITurnContext, NextDelegate, CancellationToken)

When implemented in middleware, processes an incoming activity.

Applies to