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