2 implementations of IEndpointNameMetadata
Microsoft.AspNetCore.Routing (2)
EndpointNameAttribute.cs (1)
16public sealed class EndpointNameAttribute : Attribute, IEndpointNameMetadata
EndpointNameMetadata.cs (1)
18public class EndpointNameMetadata : IEndpointNameMetadata
29 references to IEndpointNameMetadata
Microsoft.AspNetCore.Mvc.Core (1)
Routing\ActionEndpointFactory.cs (1)
388builder.Metadata.OfType<IEndpointNameMetadata>().LastOrDefault()?.EndpointName == null)
Microsoft.AspNetCore.Mvc.Core.Test (7)
Routing\ActionEndpointFactoryTest.cs (1)
255Assert.Equal("Test", endpoint.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
Routing\ControllerActionEndpointDataSourceTest.cs (6)
110Assert.Equal("1", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName); 117Assert.Equal("2", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName); 124Assert.Equal("Test", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName); 279Assert.Equal("1", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName); 286Assert.Equal("2", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName); 293Assert.Equal("NewName", e.Metadata.GetMetadata<IEndpointNameMetadata>().EndpointName);
Microsoft.AspNetCore.OpenApi (2)
Services\OpenApiDocumentService.cs (1)
305description.ActionDescriptor.EndpointMetadata.OfType<IEndpointNameMetadata>().LastOrDefault()?.EndpointName;
Services\OpenApiGenerator.cs (1)
77OperationId = metadata.GetMetadata<IEndpointNameMetadata>()?.EndpointName,
Microsoft.AspNetCore.Routing (4)
Builder\RoutingEndpointConventionBuilderExtensions.cs (2)
100/// Adds the <see cref="IEndpointNameMetadata"/> to the Metadata collection for all endpoints produced 102/// The <see cref="IEndpointNameMetadata" /> on the endpoint is used for link generation and
EndpointNameAddressScheme.cs (1)
102return endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()?.EndpointName;
Matching\DataSourceDependentMatcher.cs (1)
50var endpointName = endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()?.EndpointName;
Microsoft.AspNetCore.Routing.Tests (15)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (2)
449Assert.Single(endpoint.Metadata.GetOrderedMetadata<IEndpointNameMetadata>()); 467Assert.Single(endpoint.Metadata.GetOrderedMetadata<IEndpointNameMetadata>());
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (4)
465var endpointNameMetadata = Assert.Single(endpoint.Metadata.GetOrderedMetadata<IEndpointNameMetadata>()); 797var endpointName = endpoint.Metadata.GetMetadata<IEndpointNameMetadata>();
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (2)
149var endpointName = endpoint.Metadata.GetMetadata<IEndpointNameMetadata>();
CompositeEndpointDataSourceTest.cs (7)
360Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 367Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 415Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 422Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 453if (b.Metadata.OfType<IEndpointNameMetadata>().SingleOrDefault() is not null) 481Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()); 488Assert.NotNull(endpoint.Metadata.GetMetadata<IEndpointNameMetadata>());