BotMessageHandler Class

Definition

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
BotMessageHandler
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.

Applies to