2 writes to ContentTypes
Microsoft.AspNetCore.Mvc.Core (2)
ConsumesAttribute.cs (2)
52
ContentTypes
= GetContentTypes(contentType, otherContentTypes);
75
ContentTypes
= GetContentTypes(contentType, otherContentTypes);
5 references to ContentTypes
Microsoft.AspNetCore.Mvc.Core (5)
ConsumesAttribute.cs (4)
17
/// A filter that specifies the supported request content types. <see cref="
ContentTypes
"/> is used to select an
131
for (var i = 0; i <
ContentTypes
.Count; i++)
133
var contentTypeMediaType = new MediaType(
ContentTypes
[i]);
272
foreach (var contentType in
ContentTypes
)
Routing\ActionEndpointFactory.cs (1)
426
builder.Metadata.Add(new AcceptsMetadata(consumesAttribute.
ContentTypes
.ToArray()));