StreamInputFormatter<TFormatter, TOptions> Class
Definition
- Namespace
- Cuemon.AspNetCore.Mvc.Formatters
- Assemblies
- Cuemon.AspNetCore.Mvc.dll
Provides a way to read an object from a request body with a text format with the constraint that TFormatter must be assignable from Formatter<TFormat>.
Implements the ConfigurableInputFormatter<TOptions>
public abstract class StreamInputFormatter<TFormatter, TOptions> : ConfigurableInputFormatter<TOptions>, IInputFormatter, IApiRequestFormatMetadataProvider, IConfigurable<TOptions> where TFormatter : Formatter<Stream> where TOptions : class, IParameterObject, new()
Type Parameters
TFormatterThe type of the Formatter<TFormat>.
TOptionsThe type of the configured options.
- Inheritance
-
objectConfigurableInputFormatter<TOptions>StreamInputFormatter<TFormatter, TOptions>
- Implements
-
IConfigurable<TOptions>
- Inherited Members
Constructors
| Name | Description |
|---|---|
| StreamInputFormatter(TOptions) | Initializes a new instance of the StreamInputFormatter<TFormatter, TOptions> class. |
Methods
| Name | Description |
|---|---|
| ReadRequestBodyAsync(InputFormatterContext, Encoding) | Reads an object from the request body. |