2 writes to ContentTypes
Microsoft.AspNetCore.Mvc.Core (2)
ConsumesAttribute.cs (2)
52ContentTypes = GetContentTypes(contentType, otherContentTypes); 75ContentTypes = GetContentTypes(contentType, otherContentTypes);
7 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()));
Microsoft.AspNetCore.Mvc.Core.Test (2)
ApplicationModels\ConsumesConstraintForFormFileParameterConventionTest.cs (2)
27Assert.Equal("application/json", Assert.Single(consumesAttribute.ContentTypes)); 48Assert.Equal("multipart/form-data", Assert.Single(consumesAttribute.ContentTypes));