11 instantiations of RouteAttribute
Microsoft.AspNetCore.Components.Endpoints.Tests (2)
RazorComponentEndpointDataSourceTest.cs (2)
335
[
Route
("/")]
349
[
Route
("/counter")]
Microsoft.AspNetCore.Components.Tests (8)
Routing\RouterTest.cs (4)
298
[
Route
("feb")]
301
[
Route
("jan")]
304
[
Route
("a/{*matchAnything}")]
307
[
Route
("a/b/c")]
Routing\RouteTableFactoryTests.cs (4)
104
[
Route
("Test1")]
164
[
Route
("Test2")]
1157
[
Route
("/ComponentWithoutExcludeFromInteractiveRoutingAttribute")]
1160
[
Route
("/ComponentWithExcludeFromInteractiveRoutingAttribute")]
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
Builder\PageActionEndpointConventionBuilderResourceCollectionExtensionsTest.cs (1)
248
[
Route
("/")]
7 references to RouteAttribute
Microsoft.AspNetCore.Components (5)
RouteAttribute.cs (1)
15
/// Constructs an instance of <see cref="
RouteAttribute
"/>.
Routing\RouteTableFactory.cs (4)
77
&& type.IsDefined(typeof(
RouteAttribute
))
104
var routeAttributes = componentType.GetCustomAttributes(typeof(
RouteAttribute
), inherit: false);
108
var
attribute = (
RouteAttribute
)routeAttributes[i];
Microsoft.AspNetCore.Components.Endpoints (2)
Discovery\IRazorComponentApplication.cs (1)
31
if (candidate.GetCustomAttributes<
RouteAttribute
>() is { } routes &&
Discovery\PageCollectionBuilder.cs (1)
89
if (attribute is
RouteAttribute
)