StreamOutputFormatter<TFormatter, TOptions> Class
Definition
- Namespace
- Cuemon.AspNetCore.Mvc.Formatters
- Assemblies
- Cuemon.AspNetCore.Mvc.dll
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
TFormatterThe type of the Formatter<TFormat>.
TOptionsThe type of the configured options.
- Inheritance
-
objectConfigurableOutputFormatter<TOptions>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. |