Delegate RequestDeserializerCallback<TData>
A callback used to deserialize an HTTP request body.
Namespace: EmbedIO
Syntax
public delegate Task<TData> RequestDeserializerCallback<TData>(IHttpContext context);
Parameters
| Type | Name | Description |
|---|---|---|
| IHttpContext | context | The IHttpContext whose request body is to be deserialized. |
Returns
| Type | Description |
|---|---|
| Task<TData> | A |
Type Parameters
| Name | Description |
|---|---|
| TData | The expected type of the deserialized data. |