Partilhar via


RequestHandler.ProcessRequestAsync Método

Definição

O método que tem de ser implementado para processar pedidos recebidos.

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

A ReceiveRequest para este processador processar.

logger
ILogger<RequestHandler>

Logger.

context
Object

Contexto opcional para processar o pedido no .

cancellationToken
CancellationToken

Token de cancelamento.

Devoluções

Um Task que produzirá uma StreamingResponse conclusão com êxito.

Aplica-se a