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.
Caution
Use CloudAdapter
instead to process incoming messages.
Abstract base class for a bot message handler.
[System.Obsolete("Use `CloudAdapter` instead to process incoming messages.", false)]
public abstract class BotMessageHandlerBase
[<System.Obsolete("Use `CloudAdapter` instead to process incoming messages.", false)>]
type BotMessageHandlerBase = class
Public MustInherit Class BotMessageHandlerBase
- Inheritance
-
BotMessageHandlerBase
- Derived
- Attributes
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. |