1 write to ContentTypes
Microsoft.AspNetCore.Mvc.Core (1)
Infrastructure\ProblemDetailsClientErrorFactory.cs (1)
22
ContentTypes
=
16 references to ContentTypes
Microsoft.AspNetCore.Mvc.Core (16)
DependencyInjection\ApiBehaviorOptionsSetup.cs (2)
46
result.
ContentTypes
.Add("application/problem+json");
47
result.
ContentTypes
.Add("application/problem+xml");
Formatters\FormatFilter.cs (3)
150
if (objectResult.
ContentTypes
.Count == 1 ||
158
objectResult.
ContentTypes
.Clear();
161
objectResult.
ContentTypes
.Add(contentType);
Infrastructure\DefaultOutputFormatterSelector.cs (1)
277
nameof(ObjectResult.
ContentTypes
));
Infrastructure\ObjectResultExecutor.cs (7)
95
result.
ContentTypes
);
100
Log.NoFormatter(Logger, formatterContext, result.
ContentTypes
);
125
Debug.Assert(result.
ContentTypes
!= null);
127
var wasEmpty = result.
ContentTypes
.Count == 0;
133
result.
ContentTypes
.Insert(0, MediaTypeNames.Application.ProblemJson);
134
result.
ContentTypes
.Insert(1, MediaTypeNames.Application.ProblemXml);
147
result.
ContentTypes
.Add(responseContentType);
ProducesAttribute.cs (3)
16
/// <see cref="ObjectResult.
ContentTypes
"/>.
59
/// Gets or sets the supported response content types. Used to set <see cref="ObjectResult.
ContentTypes
"/>.
88
SetContentTypes(objectResult.
ContentTypes
);