StreamingRequestHandler.ProcessRequestAsync 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.
Handles incoming requests.
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)
Parameters
- request
- ReceiveRequest
A ReceiveRequest for this handler to process.
- logger
- ILogger<RequestHandler>
Logger.
- context
- Object
Optional context to process the request within.
- cancellationToken
- CancellationToken
Cancellation token.
Returns
A Task that will produce a StreamingResponse on successful completion.