1 implementation of Type
Microsoft.AspNetCore.Http.Abstractions (1)
Metadata\ProducesResponseTypeMetadata.cs (1)
64public Type? Type { get; private set; }
14 references to Type
Microsoft.AspNetCore.Http.Extensions.Tests (10)
RequestDelegateFactoryTests.cs (3)
2567Assert.Equal(typeof(object), responseMetadata.Type); 2579Assert.Equal(typeof(string), responseMetadata.Type); 2859m => Assert.Equal(typeof(CountsDefaultEndpointMetadataPoco), ((IProducesResponseTypeMetadata)m).Type),
RequestDelegateGenerator\RequestDelegateCreationTests.Metadata.cs (7)
36Assert.Equal(typeof(string), metadata.Type); 52Assert.Equal(typeof(Todo), metadata.Type); 82Assert.Equal(typeof(string), metadata.Type); 107Assert.Equal(typeof(string), metadata.Type); 176Assert.Equal(typeof(object), responseMetadata.Type); 190Assert.Equal(typeof(string), responseMetadata.Type); 536m => Assert.Equal(typeof(CountsDefaultEndpointMetadataPoco), ((IProducesResponseTypeMetadata)m).Type),
Microsoft.AspNetCore.Mvc.ApiExplorer (3)
ApiResponseTypeProvider.cs (3)
237if (typeof(IResult).IsAssignableFrom(metadata.Type) && typeof(IEndpointMetadataProvider).IsAssignableFrom(metadata.Type)) 246Type = metadata.Type,
Microsoft.AspNetCore.OpenApi (1)
Services\OpenApiGenerator.cs (1)
123var discoveredTypeAnnotation = responseMetadata.Type;