BotMessageHandler.ProcessMessageRequestAsync Method
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.
Deserializes the incoming request using a BotMessageHandler, processes it with an IAdapterIntegration and returns an InvokeResponse.
protected override System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse> ProcessMessageRequestAsync (Microsoft.AspNetCore.Http.HttpRequest request, Microsoft.Bot.Builder.Integration.IAdapterIntegration adapter, Microsoft.Bot.Builder.BotCallbackHandler botCallbackHandler, System.Threading.CancellationToken cancellationToken);
override this.ProcessMessageRequestAsync : Microsoft.AspNetCore.Http.HttpRequest * Microsoft.Bot.Builder.Integration.IAdapterIntegration * Microsoft.Bot.Builder.BotCallbackHandler * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Builder.InvokeResponse>
Protected Overrides Function ProcessMessageRequestAsync (request As HttpRequest, adapter As IAdapterIntegration, botCallbackHandler As BotCallbackHandler, cancellationToken As CancellationToken) As Task(Of InvokeResponse)
Parameters
- request
- HttpRequest
A HttpRequest.
- adapter
- IAdapterIntegration
An instance of IAdapterIntegration.
- botCallbackHandler
- BotCallbackHandler
An instance of BotCallbackHandler.
- cancellationToken
- CancellationToken
Returns
An InvokeResponse returned from the adapter.