HttpHelper.WriteResponseAsync(HttpResponse, InvokeResponse) 方法

定义

如果提供了 , InvokeResponse 则使用 的状态和正文 InvokeResponse 来设置 的状态和正文 HttpResponseInvokeResponse如果未提供 ,则 状态HttpResponse设置为 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

参数

response
HttpResponse

HttpResponse。

invokeResponse
InvokeResponse

InvokeResponse 的一个实例。

返回

表示要执行的工作的任务。

适用于