Jaa


HttpHelper.ReadRequestAsync<T>(HttpRequest) Method

Definition

Accepts an incoming HttpRequest and deserializes it using the BotMessageSerializer.

public static System.Threading.Tasks.Task<T> ReadRequestAsync<T> (Microsoft.AspNetCore.Http.HttpRequest request);
static member ReadRequestAsync : Microsoft.AspNetCore.Http.HttpRequest -> System.Threading.Tasks.Task<'T>
Public Shared Function ReadRequestAsync(Of T) (request As HttpRequest) As Task(Of T)

Type Parameters

T

The type to deserialize the request into.

Parameters

request
HttpRequest

The HttpRequest.

Returns

Task<T>

The deserialized request.

Applies to