1 implementation of IProducesResponseTypeMetadata
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
16public sealed class ProducesResponseTypeMetadata : IProducesResponseTypeMetadata
40 references to IProducesResponseTypeMetadata
Microsoft.AspNetCore.Http.Extensions.Tests (27)
RequestDelegateFactoryTests.cs (9)
2564var responseMetadata = Assert.Single(result.EndpointMetadata.OfType<IProducesResponseTypeMetadata>()); 2576var responseMetadata = Assert.Single(result.EndpointMetadata.OfType<IProducesResponseTypeMetadata>()); 2714Assert.DoesNotContain(result.EndpointMetadata, m => m is IProducesResponseTypeMetadata); 2737Assert.DoesNotContain(result.EndpointMetadata, m => m is IProducesResponseTypeMetadata); 2760Assert.DoesNotContain(result.EndpointMetadata, m => m is IProducesResponseTypeMetadata); 2783Assert.DoesNotContain(result.EndpointMetadata, m => m is IProducesResponseTypeMetadata); 2859m => Assert.Equal(typeof(CountsDefaultEndpointMetadataPoco), ((IProducesResponseTypeMetadata)m).Type),
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (18)
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(); 93Assert.Empty(endpoint.Metadata.OfType<IProducesResponseTypeMetadata>()); 104var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 118Assert.Empty(endpoint.Metadata.OfType<IProducesResponseTypeMetadata>()); 130var metadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 173var responseMetadata = endpoint.Metadata.OfType<IProducesResponseTypeMetadata>().Single(); 187var 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)
115var producesResponseMetadata = metadata.GetOrderedMetadata<IProducesResponseTypeMetadata>(); 119foreach (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