1 write to EndpointMetadata
Microsoft.AspNetCore.Http.Abstractions (1)
RequestDelegateResult.cs (1)
17
EndpointMetadata
= metadata;
42 references to EndpointMetadata
Microsoft.AspNetCore.Http.Extensions (1)
RequestDelegateFactoryOptions.cs (1)
43
/// Any metadata already in <see cref="EndpointBuilder.Metadata"/> will be included in <see cref="RequestDelegateResult.
EndpointMetadata
" /> <b>before</b>
Microsoft.AspNetCore.Http.Extensions.Tests (40)
RequestDelegateFactoryTests.cs (40)
2527
Assert.Empty(result.
EndpointMetadata
);
2536
var responseMetadata = Assert.IsAssignableFrom<IProducesResponseTypeMetadata>(Assert.Single(result.
EndpointMetadata
));
2548
var responseMetadata = Assert.IsAssignableFrom<IProducesResponseTypeMetadata>(Assert.Single(result.
EndpointMetadata
));
2568
Assert.Collection(result.
EndpointMetadata
,
2586
Assert.Empty(result.
EndpointMetadata
);
2599
Assert.Contains(result.
EndpointMetadata
, m => m is ParameterNameMetadata { Name: "param1" });
2600
Assert.Contains(result.
EndpointMetadata
, m => m is ParameterNameMetadata { Name: "param2" });
2613
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Parameter });
2626
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.ReturnType });
2639
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.ReturnType });
2652
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.ReturnType });
2665
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.ReturnType });
2685
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Caller });
2687
Assert.Contains(result.
EndpointMetadata
, m => m is MetadataCountMetadata { Count: 1 });
2707
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Caller });
2708
Assert.Contains(result.
EndpointMetadata
, m => m is ProducesResponseTypeMetadata { Type: { } type } && type == typeof(CountsDefaultEndpointMetadataResult));
2710
Assert.Contains(result.
EndpointMetadata
, m => m is MetadataCountMetadata { Count: 2 });
2730
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Caller });
2731
Assert.Contains(result.
EndpointMetadata
, m => m is ProducesResponseTypeMetadata { Type: { } type } && type == typeof(CountsDefaultEndpointMetadataResult));
2733
Assert.Contains(result.
EndpointMetadata
, m => m is MetadataCountMetadata { Count: 2 });
2753
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Caller });
2754
Assert.Contains(result.
EndpointMetadata
, m => m is IProducesResponseTypeMetadata { Type: { } type } && type == typeof(CountsDefaultEndpointMetadataResult));
2756
Assert.Contains(result.
EndpointMetadata
, m => m is MetadataCountMetadata { Count: 2 });
2776
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Caller });
2777
Assert.Contains(result.
EndpointMetadata
, m => m is ParameterNameMetadata { Name: "param1" });
2797
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Caller });
2798
Assert.Contains(result.
EndpointMetadata
, m => m is CustomEndpointMetadata { Source: MetadataSource.Parameter });
2818
Assert.Collection(result.
EndpointMetadata
,
2852
Assert.Contains(result.
EndpointMetadata
, m => m is RoutePatternMetadata { RoutePattern: "/test/pattern" });
2887
Assert.Contains(result.
EndpointMetadata
, m => m is IParameterBindingMetadata { Name: "param1" });
2888
Assert.Same(options.EndpointBuilder.Metadata, result.
EndpointMetadata
);
2944
Assert.DoesNotContain(result.
EndpointMetadata
, m => m is IAcceptsMetadata);
2957
Assert.DoesNotContain(result.
EndpointMetadata
, m => m is IAcceptsMetadata);
2970
Assert.DoesNotContain(result.
EndpointMetadata
, m => m is IAcceptsMetadata);
2983
Assert.DoesNotContain(result.
EndpointMetadata
, m => m is IAcceptsMetadata);
2996
Assert.DoesNotContain(result.
EndpointMetadata
, m => m is IAcceptsMetadata);
3010
Assert.DoesNotContain(result.
EndpointMetadata
, m => m is IAcceptsMetadata);
3025
Assert.Contains(result.
EndpointMetadata
, m => m is MetadataService);
3040
Assert.Contains(result.
EndpointMetadata
, m => m is MetadataService);
3084
Assert.Same(options.EndpointBuilder.Metadata, result.
EndpointMetadata
);
Microsoft.AspNetCore.Mvc.ApiExplorer.Test (1)
EndpointMetadataApiDescriptionProviderTest.cs (1)
1551
var metadataItems = new List<object>(requestDelegateResult.
EndpointMetadata
) { methodInfo, httpMethodMetadata };