11 references to RouteAttribute
Microsoft.AspNetCore.Components (9)
RouteAttribute.cs (1)
15
/// Constructs an instance of <see cref="
RouteAttribute
"/>.
Routing\Router.cs (4)
152
var routeAttributes = NotFoundPage.GetCustomAttributes(typeof(
RouteAttribute
), inherit: true);
156
$"does not have a {typeof(
RouteAttribute
).FullName} applied to it.");
159
var
routeAttribute = (
RouteAttribute
)routeAttributes[0];
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
)