1 write to OutputFormatters
Microsoft.AspNetCore.Mvc.Core (1)
MvcOptions.cs (1)
45
OutputFormatters
= new FormatterCollection<IOutputFormatter>();
11 references to OutputFormatters
Microsoft.AspNetCore.Mvc.ApiExplorer (1)
ApiResponseTypeProvider.cs (1)
97
var responseTypeMetadataProviders = _mvcOptions.
OutputFormatters
.OfType<IApiResponseTypeMetadataProvider>();
Microsoft.AspNetCore.Mvc.Core (8)
Infrastructure\DefaultOutputFormatterSelector.cs (2)
44
_formatters = new ReadOnlyCollection<IOutputFormatter>(options.Value.
OutputFormatters
);
65
nameof(MvcOptions.
OutputFormatters
),
Infrastructure\MvcCoreMvcOptionsSetup.cs (4)
77
options.
OutputFormatters
.Add(new HttpNoContentOutputFormatter());
78
options.
OutputFormatters
.Add(new StringOutputFormatter());
79
options.
OutputFormatters
.Add(new StreamOutputFormatter());
82
options.
OutputFormatters
.Add(jsonOutputFormatter);
Infrastructure\OutputFormatterSelector.cs (2)
20
/// <see cref="MvcOptions.
OutputFormatters
"/>, <see cref="MvcOptions.RespectBrowserAcceptHeader"/>, and
30
/// <param name="formatters">A list of formatters to use; this acts as an override to <see cref="MvcOptions.
OutputFormatters
"/>.</param>
Microsoft.AspNetCore.Mvc.Formatters.Xml (2)
DependencyInjection\XmlDataContractSerializerMvcOptionsSetup.cs (1)
45
options.
OutputFormatters
.Add(outputFormatter);
DependencyInjection\XmlSerializerMvcOptionsSetup.cs (1)
51
options.
OutputFormatters
.Add(outputFormatter);