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