BotMessageHandler 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.
A handler to process incoming http requests via using an adapter.
[System.Obsolete("Use `CloudAdapter` instead to process incoming messages.", false)]
public class BotMessageHandler : Microsoft.Bot.Builder.Integration.AspNet.Core.Handlers.BotMessageHandlerBase
[<System.Obsolete("Use `CloudAdapter` instead to process incoming messages.", false)>]
type BotMessageHandler = class
inherit BotMessageHandlerBase
Public Class BotMessageHandler
Inherits BotMessageHandlerBase
- Inheritance
- Attributes
Constructors
BotMessageHandler() |
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. (Inherited from BotMessageHandlerBase) |
ProcessMessageRequestAsync(HttpRequest, IAdapterIntegration, BotCallbackHandler, CancellationToken) |
Deserializes the incoming request using a BotMessageHandler, processes it with an IAdapterIntegration and returns an InvokeResponse. |