Table of Contents

StreamOutputFormatter<TFormatter, TOptions> Class

Definition

Provides a way to write an object in a given text format to the output stream with the constraint that TFormatter must be assignable from Formatter<TFormat>. Implements the ConfigurableOutputFormatter<TOptions>

public abstract class StreamOutputFormatter<TFormatter, TOptions> : ConfigurableOutputFormatter<TOptions>, IOutputFormatter, IApiResponseTypeMetadataProvider, 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
StreamOutputFormatter<TFormatter, TOptions>
Implements
IConfigurable<TOptions>
Inherited Members

Constructors

Name Description
StreamOutputFormatter(TOptions)

Initializes a new instance of the StreamOutputFormatter<TFormatter, TOptions> class.

Methods

Name Description
WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)

write response body as an asynchronous operation.