BotMessageHandlerBase Class
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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. |