2 implementations of EndpointName
Microsoft.AspNetCore.Routing (2)
EndpointNameAttribute.cs (1)
30public string EndpointName { get; }
EndpointNameMetadata.cs (1)
34public string EndpointName { get; }
14 references to EndpointName
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 (2)
EndpointNameAddressScheme.cs (1)
102return endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()?.EndpointName;
Matching\DataSourceDependentMatcher.cs (1)
50var endpointName = endpoint.Metadata.GetMetadata<IEndpointNameMetadata>()?.EndpointName;
Microsoft.AspNetCore.Routing.Tests (2)
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (1)
467Assert.Equal("Foo", endpointNameMetadata.EndpointName);
Builder\RoutingEndpointConventionBuilderExtensionsTest.cs (1)
150Assert.Equal(name, endpointName.EndpointName);