Table of Contents

StreamInputFormatter<TFormatter, TOptions> Class

Definition

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

TFormatter

The type of the Formatter<TFormat>.

TOptions

The type of the configured options.

Inheritance
object
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.