SaaS CMS has officially launched! Learn more now.

Class ExtendedNewtonsoftJsonOutputFormatter

Inheritance
System.Object
ExtendedNewtonsoftJsonOutputFormatter
Implements
Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter
Namespace: EPiServer.Formatters.Internal
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
Syntax
public class ExtendedNewtonsoftJsonOutputFormatter : NewtonsoftJsonOutputFormatter, IJsonOutputFormatter, IOutputFormatter

Constructors

ExtendedNewtonsoftJsonOutputFormatter(IBufferedResponseWriterFactory, IOptions<MvcOptions>, NewtonsoftJsonSerializerSettingsOptions)

Declaration
public ExtendedNewtonsoftJsonOutputFormatter(IBufferedResponseWriterFactory responseWriterFactory, IOptions<MvcOptions> mvcOptions, NewtonsoftJsonSerializerSettingsOptions newtonsoftJsonSerializerSettingsOptions)
Parameters
Type Name Description
IBufferedResponseWriterFactory responseWriterFactory
Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Mvc.MvcOptions> mvcOptions
NewtonsoftJsonSerializerSettingsOptions newtonsoftJsonSerializerSettingsOptions

Methods

CreateWriter(Stream, Encoding)

Declaration
public TextWriter CreateWriter(Stream stream, Encoding encoding)
Parameters
Type Name Description
System.IO.Stream stream
System.Text.Encoding encoding
Returns
Type Description
System.IO.TextWriter

WriteAsync(OutputFormatterWriteContext)

Declaration
public override Task WriteAsync(OutputFormatterWriteContext context)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context
Returns
Type Description
System.Threading.Tasks.Task

WriteAsync(OutputFormatterWriteContext, ResponseDecorator)

Declaration
public Task WriteAsync(OutputFormatterWriteContext context, ResponseDecorator responseDecorator = null)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context
ResponseDecorator responseDecorator
Returns
Type Description
System.Threading.Tasks.Task

WriteResponseBodyAsync(OutputFormatterWriteContext, ResponseDecorator)

Declaration
public Task WriteResponseBodyAsync(OutputFormatterWriteContext context, ResponseDecorator responseDecorator = null)
Parameters
Type Name Description
Microsoft.AspNetCore.Mvc.Formatters.OutputFormatterWriteContext context
ResponseDecorator responseDecorator
Returns
Type Description
System.Threading.Tasks.Task

Implements

Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter

Extension Methods