2 writes to ContentTypes
Microsoft.AspNetCore.Mvc.Core (2)
ConsumesAttribute.cs (2)
52ContentTypes = GetContentTypes(contentType, otherContentTypes); 75ContentTypes = 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 131for (var i = 0; i < ContentTypes.Count; i++) 133var contentTypeMediaType = new MediaType(ContentTypes[i]); 272foreach (var contentType in ContentTypes)
Routing\ActionEndpointFactory.cs (1)
426builder.Metadata.Add(new AcceptsMetadata(consumesAttribute.ContentTypes.ToArray()));