1 implementation of Type
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
64public Type? Type { get; private set; }
17 references to Type
Microsoft.AspNetCore.Http.Extensions.Tests (13)
RequestDelegateFactoryTests.cs (4)
2539Assert.Equal(typeof(object), responseMetadata.Type); 2551Assert.Equal(typeof(string), responseMetadata.Type); 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 (9)
36Assert.Equal(typeof(string), metadata.Type); 52Assert.Equal(typeof(Todo), metadata.Type); 82Assert.Equal(typeof(string), metadata.Type); 96Assert.Equal(typeof(void), metadata.Type); 110Assert.Equal(typeof(string), metadata.Type); 124Assert.Equal(typeof(void), metadata.Type); 182Assert.Equal(typeof(object), responseMetadata.Type); 196Assert.Equal(typeof(string), responseMetadata.Type); 536m => Assert.Equal(typeof(CountsDefaultEndpointMetadataPoco), ((IProducesResponseTypeMetadata)m).Type),
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (2)
236if (typeof(IResult).IsAssignableFrom(metadata.Type)) 245Type = metadata.Type,
EndpointMetadataApiDescriptionProvider.cs (1)
338producesResponseMetadata.Any(metadata => typeof(IResult).IsAssignableFrom(metadata.Type)))
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
124var discoveredTypeAnnotation = responseMetadata.Type;