1 implementation of IProducesResponseTypeMetadata
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
16public sealed class ProducesResponseTypeMetadata : IProducesResponseTypeMetadata
39 references to IProducesResponseTypeMetadata
Microsoft.AspNetCore.Http.Extensions.Tests (26)
RequestDelegateFactoryTests.cs (6)
2536var responseMetadata = Assert.IsAssignableFrom<IProducesResponseTypeMetadata>(Assert.Single(result.EndpointMetadata)); 2548var responseMetadata = Assert.IsAssignableFrom<IProducesResponseTypeMetadata>(Assert.Single(result.EndpointMetadata)); 2754Assert.Contains(result.EndpointMetadata, m => m is IProducesResponseTypeMetadata { Type: { } type } && type == typeof(CountsDefaultEndpointMetadataResult)); 2828m => Assert.Equal(typeof(CountsDefaultEndpointMetadataPoco), ((IProducesResponseTypeMetadata)m).Type),
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (20)
33var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 49var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 65var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>(); 79var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 93var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 107var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 121var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 136var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 179var responseMetadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 193var responseMetadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 536m => Assert.Equal(typeof(CountsDefaultEndpointMetadataPoco), ((IProducesResponseTypeMetadata)m).Type),
Microsoft.AspNetCore.Mvc.ApiExplorer (5)
ApiResponseTypeProvider.cs (4)
53var producesResponseMetadata = action.EndpointMetadata.OfType<IProducesResponseTypeMetadata>().ToList(); 77IReadOnlyList<IProducesResponseTypeMetadata> producesResponseMetadata, 225IReadOnlyList<IProducesResponseTypeMetadata> responseMetadata, 232foreach (var metadata in responseMetadata)
EndpointMetadataApiDescriptionProvider.cs (1)
330var producesResponseMetadata = endpointMetadata.GetOrderedMetadata<IProducesResponseTypeMetadata>();
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiGenerator.cs (2)
116var producesResponseMetadata = metadata.GetOrderedMetadata<IProducesResponseTypeMetadata>(); 120foreach (var responseMetadata in producesResponseMetadata)
Microsoft.AspNetCore.Routing (6)
Builder\OpenApiRouteHandlerBuilderExtensions.cs (6)
38/// Adds an <see cref="IProducesResponseTypeMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 59/// Adds an <see cref="IProducesResponseTypeMetadata"/> to <see cref="EndpointBuilder.Metadata"/> for all endpoints 95/// Adds an <see cref="IProducesResponseTypeMetadata"/> with a <see cref="ProblemDetails"/> type 113/// Adds an <see cref="IProducesResponseTypeMetadata"/> with a <see cref="ProblemDetails"/> type 134/// Adds an <see cref="IProducesResponseTypeMetadata"/> with a <see cref="HttpValidationProblemDetails"/> type 155/// Adds an <see cref="IProducesResponseTypeMetadata"/> with a <see cref="HttpValidationProblemDetails"/> type