Compartilhar via


StreamingRequestHandler.ProcessRequestAsync Método

Definição

Manipula solicitações de entrada.

public override System.Threading.Tasks.Task<Microsoft.Bot.Streaming.StreamingResponse> ProcessRequestAsync (Microsoft.Bot.Streaming.ReceiveRequest request, Microsoft.Extensions.Logging.ILogger<Microsoft.Bot.Streaming.RequestHandler> logger = default, object context = default, System.Threading.CancellationToken cancellationToken = default);
override this.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 Overrides Function ProcessRequestAsync (request As ReceiveRequest, Optional logger As ILogger(Of RequestHandler) = Nothing, Optional context As Object = Nothing, Optional cancellationToken As CancellationToken = Nothing) As Task(Of StreamingResponse)

Parâmetros

request
ReceiveRequest

Um ReceiveRequest para esse manipulador processar.

logger
ILogger<RequestHandler>

Logger.

context
Object

Contexto opcional no qual processar a solicitação.

cancellationToken
CancellationToken

Token de cancelamento.

Retornos

Um Task que produzirá um StreamingResponse após a conclusão bem-sucedida.

Aplica-se a