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