16 instantiations of RouteNameMetadata
Microsoft.AspNetCore.Mvc.Core (2)
Routing\ActionEndpointFactory.cs (2)
230builder.Metadata.Add(new RouteNameMetadata(route.RouteName)); 398builder.Metadata.Add(new RouteNameMetadata(routeName));
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\EndpointRoutingUrlHelperTest.cs (1)
266metadata.Add(new RouteNameMetadata(routeName));
Microsoft.AspNetCore.Routing (1)
Builder\RoutingEndpointConventionBuilderExtensions.cs (1)
110builder.WithMetadata(new EndpointNameMetadata(endpointName), new RouteNameMetadata(endpointName));
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
EndpointRoutingBenchmarkBase.cs (1)
115endpointMetadata.Add(new RouteNameMetadata(routeName));
Microsoft.AspNetCore.Routing.Tests (9)
Builder\RequestDelegateEndpointRouteBuilderExtensionsTest.cs (2)
469Assert.Throws<InvalidOperationException>(() => endpointBuilder.WithMetadata(new RouteNameMetadata("Foo"))); 470Assert.Throws<InvalidOperationException>(() => endpointBuilder.Finally(b => b.Metadata.Add(new RouteNameMetadata("Foo"))));
Builder\RouteHandlerEndpointRouteBuilderExtensionsTest.cs (2)
499Assert.Throws<InvalidOperationException>(() => endpointBuilder.WithMetadata(new RouteNameMetadata("Foo"))); 500Assert.Throws<InvalidOperationException>(() => endpointBuilder.Finally(b => b.Metadata.Add(new RouteNameMetadata("Foo"))));
LinkGeneratorIntegrationTest.cs (2)
133metadata: new object[] { new SuppressMatchingMetadata(), new RouteNameMetadata("custom"), }), 143metadata: new object[] { new SuppressMatchingMetadata(), new RouteNameMetadata("custom2"), }),
MetadataTest.cs (1)
68var metadata = new RouteNameMetadata("RouteName");
RouteValuesAddressSchemeTest.cs (2)
405metadata: new object[] { new SuppressLinkGenerationMetadata(), new EncourageLinkGenerationMetadata(), new RouteNameMetadata("a"), }); 438metadata.Add(new RouteNameMetadata(routeName));
RoutingWebSite (2)
UseEndpointRoutingStartup.cs (2)
105}).WithMetadata(new RouteNameMetadata(routeName: "WithSingleAsteriskCatchAll")); 117}).WithMetadata(new RouteNameMetadata(routeName: "WithDoubleAsteriskCatchAll"));
3 references to RouteNameMetadata
Microsoft.AspNetCore.Mvc.Core.Test (1)
ApplicationModels\EndpointMetadataProviderTest.cs (1)
126m => Assert.True(m is RouteNameMetadata),
Microsoft.AspNetCore.Routing (1)
RouteNameMetadata.cs (1)
16/// Creates a new instance of <see cref="RouteNameMetadata"/> with the provided route name.
Microsoft.AspNetCore.Routing.Tests (1)
MetadataTest.cs (1)
68var metadata = new RouteNameMetadata("RouteName");