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