BotMessageHandlerBase Class

Definition

Abstract base class for a bot message handler.

public abstract class BotMessageHandlerBase
type BotMessageHandlerBase = class
Public MustInherit Class BotMessageHandlerBase
Inheritance
BotMessageHandlerBase
Derived

Constructors

BotMessageHandlerBase()

Initializes a new instance of the BotMessageHandlerBase class.

Fields

BotMessageSerializer

A Newtonsoft.Json.JsonSerializer for use when serializing bot messages.

Methods

HandleAsync(HttpContext)

Handles common behavior for handling requests, including checking valid request method and content type. Processes the request using the registered adapter and bot and writes the result to the response on the HttpContext.

ProcessMessageRequestAsync(HttpRequest, IAdapterIntegration, BotCallbackHandler, CancellationToken)

Abstract method to process the incoming request using the registered adapter and bot and to return an InvokeResponse.

Applies to