Method IBindableFromHttpContext<UploadRequest<TCommand>>.BindAsync
IBindableFromHttpContext<UploadRequest<TCommand>>.BindAsync(HttpContext, ParameterInfo)
Binds the upload request parameter of the validator of a chunked upload, with the command.
Declaration
static ValueTask<UploadRequest<TCommand>?> IBindableFromHttpContext<UploadRequest<TCommand>>.BindAsync(HttpContext context, ParameterInfo parameter)
Parameters
| Type | Name | Description |
|---|---|---|
| HttpContext | context | |
| ParameterInfo | parameter |
Returns
| Type | Description |
|---|---|
| ValueTask<UploadRequest<TCommand>> |
Implements
Exceptions
| Type | Condition |
|---|---|
| InvalidOperationException | The parameter is not a parameter of the validator of a chunked upload. |
| BadRequestApiException | The command is missing where the parameter does not allow null, or cannot be read. |