HttpHelper.WriteResponseAsync(HttpResponse, InvokeResponse) Metode

Definisi

InvokeResponse Jika disediakan status dan isi digunakan InvokeResponse untuk mengatur status dan isi HttpResponse. Jika tidak InvokeResponse disediakan maka status HttpResponse diatur ke 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

Parameter

response
HttpResponse

Respons Http.

invokeResponse
InvokeResponse

Instans InvokeResponse.

Mengembalikan

Tugas yang mewakili pekerjaan yang akan dijalankan.

Berlaku untuk