IChannelResponseHandler.OnResponse 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 the HTTP response associated with the specified activity.
public System.Threading.Tasks.Task OnResponse(Microsoft.AspNetCore.Http.HttpResponse httpResponse, Microsoft.Agents.Core.Models.IActivity activity, System.Threading.CancellationToken cancellationToken = default);
abstract member OnResponse : Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Agents.Core.Models.IActivity * System.Threading.CancellationToken -> System.Threading.Tasks.Task
Public Function OnResponse (httpResponse As HttpResponse, activity As IActivity, Optional cancellationToken As CancellationToken = Nothing) As Task
Parameters
- httpResponse
- HttpResponse
The HTTP response to process. Cannot be null.
- activity
- IActivity
The activity associated with the HTTP response. Cannot be null.
- cancellationToken
- CancellationToken
A cancellation token that can be used to cancel the operation.
Returns
A task that represents the asynchronous operation.