Compartir a través de


RequestHandler.ProcessRequestAsync Método

Definición

Método que se debe implementar para controlar las solicitudes entrantes.

public abstract System.Threading.Tasks.Task<Microsoft.Bot.Streaming.StreamingResponse> ProcessRequestAsync (Microsoft.Bot.Streaming.ReceiveRequest request, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Streaming.RequestHandler> logger, object context = default, System.Threading.CancellationToken cancellationToken = default);
abstract member ProcessRequestAsync : Microsoft.Bot.Streaming.ReceiveRequest * Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Streaming.RequestHandler> * obj * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.Bot.Streaming.StreamingResponse>
Public MustOverride Function ProcessRequestAsync (request As ReceiveRequest, logger As ILogger(Of RequestHandler), Optional context As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StreamingResponse)

Parámetros

request
ReceiveRequest

que ReceiveRequest este controlador va a procesar.

logger
ILogger<RequestHandler>

Registrador.

context
Object

Contexto opcional en el que procesar la solicitud.

cancellationToken
CancellationToken

Token de cancelación.

Devoluciones

que Task generará un StreamingResponse objeto al completarse correctamente.

Se aplica a