2 writes to ContentTypes
Microsoft.AspNetCore.Mvc.Core (2)
ProducesAttribute.cs (2)
28ContentTypes = new MediaTypeCollection(); 49ContentTypes = 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 101foreach (var contentType in ContentTypes)
Microsoft.AspNetCore.Mvc.Core.Test (2)
ProducesAttributeTests.cs (2)
150Assert.NotNull(producesAttribute.ContentTypes); 151Assert.Empty(producesAttribute.ContentTypes);
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiDocumentService.cs (1)
382.SelectMany(attr => attr.ContentTypes);