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