Table of Contents

Class ConfigurableOutputFormatter<TOptions>

Namespace
Cuemon.AspNetCore.Mvc.Formatters
Assembly
Cuemon.AspNetCore.Mvc.dll

Provides an alternate way to write an object in a given text format to the output stream.

public abstract class ConfigurableOutputFormatter<TOptions> : TextOutputFormatter, IOutputFormatter, IApiResponseTypeMetadataProvider, IConfigurable<TOptions> where TOptions : class, IParameterObject, new()

Type Parameters

TOptions

The type of the configured options.

Inheritance
Object
OutputFormatter
TextOutputFormatter
ConfigurableOutputFormatter<TOptions>
Implements
IOutputFormatter
IApiResponseTypeMetadataProvider
IConfigurable<TOptions>
Derived
Inherited Members
TextOutputFormatter.SelectCharacterEncoding(OutputFormatterWriteContext)
TextOutputFormatter.WriteAsync(OutputFormatterWriteContext)
TextOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext)
TextOutputFormatter.WriteResponseBodyAsync(OutputFormatterWriteContext, Encoding)
TextOutputFormatter.SupportedEncodings
OutputFormatter.CanWriteType(Type)
OutputFormatter.GetSupportedContentTypes(String, Type)
OutputFormatter.CanWriteResult(OutputFormatterCanWriteContext)
OutputFormatter.WriteResponseHeaders(OutputFormatterWriteContext)
OutputFormatter.SupportedMediaTypes

Constructors

ConfigurableOutputFormatter(TOptions)

Initializes a new instance of the ConfigurableOutputFormatter<TOptions> class.

protected ConfigurableOutputFormatter(TOptions options)

Parameters

options TOptions

The TOptions which need to be configured.

Properties

Options

Gets the configured options of this instance.

public TOptions Options { get; }

Property Value

TOptions

The configured options of this instance.

See Also

TextInputFormatter
IConfigurable<TOptions>