Jaa


HttpHelper.WriteResponseAsync(HttpResponse, InvokeResponse) Method

Definition

If an InvokeResponse is provided the status and body of the InvokeResponse are used to set the status and body of the HttpResponse. If no InvokeResponse is provided then the status of the HttpResponse is set to 200.

public static System.Threading.Tasks.Task WriteResponseAsync (Microsoft.AspNetCore.Http.HttpResponse response, Microsoft.Bot.Builder.InvokeResponse invokeResponse);
static member WriteResponseAsync : Microsoft.AspNetCore.Http.HttpResponse * Microsoft.Bot.Builder.InvokeResponse -> System.Threading.Tasks.Task
Public Shared Function WriteResponseAsync (response As HttpResponse, invokeResponse As InvokeResponse) As Task

Parameters

response
HttpResponse

A HttpResponse.

invokeResponse
InvokeResponse

An instance of InvokeResponse.

Returns

A Task representing the work to be executed.

Applies to