Class ExtendedNewtonsoftJsonOutputFormatter
Inheritance
System.Object
ExtendedNewtonsoftJsonOutputFormatter
Implements
Microsoft.AspNetCore.Mvc.Formatters.IOutputFormatter
Assembly: EPiServer.Cms.AspNetCore.dll
Version: 12.0.3
public class ExtendedNewtonsoftJsonOutputFormatter : NewtonsoftJsonOutputFormatter, IJsonOutputFormatter, IOutputFormatter
Constructors
Declaration
public ExtendedNewtonsoftJsonOutputFormatter(IBufferedResponseWriterFactory responseWriterFactory, IOptions<MvcOptions> mvcOptions, NewtonsoftJsonSerializerSettingsOptions newtonsoftJsonSerializerSettingsOptions)
Parameters
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