HttpHelper.ReadRequestAsync<T>(HttpRequest) 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.
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.