2 writes to ContentTypes
Microsoft.AspNetCore.Mvc.Core (2)
ProducesAttribute.cs (2)
28
ContentTypes
= new MediaTypeCollection();
49
ContentTypes
= GetContentTypes(contentType, additionalContentTypes);
5 references to ContentTypes
Microsoft.AspNetCore.Mvc.Core (2)
ProducesAttribute.cs (2)
15
/// response content types. The <see cref="
ContentTypes
"/> value is used to set
101
foreach (var contentType in
ContentTypes
)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ProducesAttributeTests.cs (2)
150
Assert.NotNull(producesAttribute.
ContentTypes
);
151
Assert.Empty(producesAttribute.
ContentTypes
);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
382
.SelectMany(attr => attr.
ContentTypes
);