6 writes to Formatters
Microsoft.AspNetCore.Mvc.Core (1)
ObjectResult.cs (1)
25Formatters = new FormatterCollection<IOutputFormatter>();
Microsoft.AspNetCore.Mvc.Core.Test (5)
Infrastructure\ObjectResultExecutorTest.cs (1)
267result.Formatters = new FormatterCollection<IOutputFormatter>
ObjectResultTests.cs (4)
41Formatters = new FormatterCollection<IOutputFormatter>() 73Formatters = new FormatterCollection<IOutputFormatter>() 102Formatters = new FormatterCollection<IOutputFormatter>() 133Formatters = new FormatterCollection<IOutputFormatter>()
60 references to Formatters
BasicWebSite (20)
Controllers\ContentNegotiation\FallbackOnTypeBasedMatchController.cs (7)
35objectResult.Formatters.Add(new PlainTextFormatter()); 36objectResult.Formatters.Add(_jsonOutputFormatter); 47objectResult.Formatters.Add(new PlainTextFormatter()); 55objectResult.Formatters.Add(new PlainTextFormatter()); 56objectResult.Formatters.Add(_jsonOutputFormatter); 66objectResult.Formatters.Add(formatter); 79objectResult.Formatters.Add(formatter);
Controllers\ContentNegotiation\FormatFilterController.cs (1)
34result.Formatters.Add(new CustomFormatter("application/FormatFilterController"));
Controllers\ContentNegotiation\NoContentDoNotTreatNullValueAsNoContentController.cs (1)
18result.Formatters.Add(noContentFormatter);
Controllers\ContentNegotiation\NoProducesContentOnClassController.cs (1)
17result.Formatters.Add(new CustomFormatter("application/custom_NoProducesContentOnClassController_Action"));
Controllers\ContentNegotiation\NormalController.cs (3)
36result.Formatters.Add(new PlainTextFormatter()); 37result.Formatters.Add(new CustomFormatter("application/custom")); 38result.Formatters.Add(_indentingFormatter);
Controllers\ContentNegotiation\ProducesContentBaseController.cs (3)
18result.Formatters.Add(new PlainTextFormatter()); 19result.Formatters.Add(new CustomFormatter("application/custom_ProducesContentBaseController")); 20result.Formatters.Add(new CustomFormatter("application/custom_ProducesContentBaseController_Action"));
Controllers\ContentNegotiation\ProducesContentOnClassController.cs (2)
18result.Formatters.Add(new CustomFormatter("application/custom_ProducesContentOnClassController")); 19result.Formatters.Add(
Controllers\ContentNegotiation\ProducesWithMediaTypeParametersController.cs (2)
19result.Formatters.Add(new VCardFormatter_V3()); 20result.Formatters.Add(new VCardFormatter_V4());
FormatterWebSite (4)
Controllers\DataContractSerializerController.cs (2)
20result.Formatters.Add(new XmlSerializerOutputFormatter()); 21result.Formatters.Add(new XmlDataContractSerializerOutputFormatter());
Controllers\JsonFormatterController.cs (1)
42objectResult.Formatters.Add(_indentingFormatter);
Controllers\XmlSerializerController.cs (1)
17result.Formatters.Add(new XmlSerializerOutputFormatter());
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ObjectResultExecutor.cs (1)
93(IList<IOutputFormatter>)result.Formatters ?? Array.Empty<IOutputFormatter>(),
Microsoft.AspNetCore.Mvc.Core.Test (33)
Infrastructure\ObjectResultExecutorTest.cs (32)
33result.Formatters.Add(new TestXmlOutputFormatter()); 34result.Formatters.Add(new TestJsonOutputFormatter()); 35result.Formatters.Add(new TestStringOutputFormatter()); // This will be chosen based on the content type 58result.Formatters.Add(new TestXmlOutputFormatter()); 59result.Formatters.Add(new TestJsonOutputFormatter()); 60result.Formatters.Add(new TestStringOutputFormatter()); // This will be chosen based on the content type 81result.Formatters.Add(new TestXmlOutputFormatter()); 82result.Formatters.Add(new TestJsonOutputFormatter()); // This will be chosen based on the content type 103result.Formatters.Add(new TestXmlOutputFormatter()); 126result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type 127result.Formatters.Add(new TestJsonOutputFormatter()); 128result.Formatters.Add(new TestStringOutputFormatter()); 148result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type 149result.Formatters.Add(new TestJsonOutputFormatter()); 150result.Formatters.Add(new TestStringOutputFormatter()); 170result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details content type 171result.Formatters.Add(new TestJsonOutputFormatter()); 172result.Formatters.Add(new TestStringOutputFormatter()); 196result.Formatters.Add(new TestJsonOutputFormatter()); // This will be chosen based on the Accept Headers "application/json" 197result.Formatters.Add(new TestXmlOutputFormatter()); 198result.Formatters.Add(new TestStringOutputFormatter()); 221result.Formatters.Add(new TestJsonOutputFormatter()); 222result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the Accept Headers "application/xml" 223result.Formatters.Add(new TestStringOutputFormatter()); 242result.Formatters.Add(new TestXmlOutputFormatter()); // This will be chosen based on the problem details added content type 243result.Formatters.Add(new TestJsonOutputFormatter()); 244result.Formatters.Add(new TestStringOutputFormatter()); 382result.Formatters.Add(new TestJsonOutputFormatter()); 383result.Formatters.Add(new TestXmlOutputFormatter()); 419result.Formatters.Add(new TestJsonOutputFormatter()); 420result.Formatters.Add(new TestXmlOutputFormatter()); 443result.Formatters.Add(formatter);
ObjectResultTests.cs (1)
29Assert.Empty(result.Formatters);
XmlFormattersWebSite (2)
Controllers\XmlDataContractApiController.cs (1)
29objectResult.Formatters.Add(xmlFormatter);
Controllers\XmlSerializedApiController.cs (1)
29objectResult.Formatters.Add(xmlFormatter);