BotMessageHandlerBase.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.
Abstract method to process the incoming request using the registered adapter and bot and to return an InvokeResponse.
protected abstract 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);
abstract member 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 MustOverride 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.