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