20 instantiations of Route
Microsoft.AspNetCore.Routing (3)
MapRouteRouteBuilderExtensions.cs (1)
117routeBuilder.Routes.Add(new Route(
RequestDelegateRouteBuilderExtensions.cs (2)
27var route = new Route( 265var route = new Route(
Microsoft.AspNetCore.Routing.Microbenchmarks (1)
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
62routes.Add(new Route(
Microsoft.AspNetCore.Routing.Tests (16)
Matching\RouteMatcherBuilder.cs (1)
62routes.Add(new Route(
RouteCollectionTest.cs (1)
578return new Route(
RouterMiddlewareTest.cs (1)
52var route = new Route(handler, "/foo/{id}", Mock.Of<IInlineConstraintResolver>());
RouteTest.cs (13)
32() => new Route( 76var route = new Route( 132var route = new Route( 184var route = new Route( 226var route = new Route( 268var route = new Route( 311var route = new Route( 360var route = new Route( 1776return new Route( 1788return new Route(CreateTarget(handleRequest), template, _inlineConstraintResolver); 1798return new Route( 1809return new Route( 1824return new Route(
100 references to Route
Microsoft.AspNetCore.Mvc.Core.Test (12)
Builder\MvcAreaRouteBuilderExtensionsTest.cs (12)
24var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 59var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 100var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 147var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 200var route = Assert.IsType<Route>((Assert.Single(builder.Routes))); 238var route = Assert.IsType<Route>((Assert.Single(builder.Routes)));
Microsoft.AspNetCore.Mvc.FunctionalTests (1)
RoutingTests.cs (1)
58typeof(Route).FullName,
Microsoft.AspNetCore.Routing (5)
RequestDelegateRouteBuilderExtensions.cs (2)
27var route = new Route( 265var route = new Route(
Route.cs (3)
16/// Constructs a new <see cref="Route"/> instance. 36/// Constructs a new <see cref="Route"/> instance. 56/// Constructs a new <see cref="Route"/> instance.
Microsoft.AspNetCore.Routing.Tests (82)
RouteCollectionTest.cs (6)
137var route = CreateTemplateRoute("{controller}", routerName, dataTokens); 385var route = CreateTemplateRoute(template); 405new Route[] 431Route[] routes, 438foreach (var route in routes) 562private static Route CreateTemplateRoute(
RouterMiddlewareTest.cs (1)
52var route = new Route(handler, "/foo/{id}", Mock.Of<IInlineConstraintResolver>());
RouteTest.cs (73)
76var route = new Route( 132var route = new Route( 184var route = new Route( 226var route = new Route( 268var route = new Route( 311var route = new Route( 360var route = new Route( 383var route = CreateRoute("{controller}/{action}"); 400var route = CreateRoute(""); 415var route = CreateRoute("{controller}/{action}", new { action = "Index" }); 432var route = CreateRoute( 455var route = CreateRoute("{controller}/{action}"); 469var route = CreateRoute("{controller}", handleRequest: false); 488var route = CreateRoute(target, "{controller}"); 504var route = CreateRoute("{controller}/{action}"); 518var route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index" }); 536var route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index" }); 553var route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index", format = "xml" }); 571var route = CreateRoute("{controller}/{action}.{format?}", new { action = "Index" }); 603var route = CreateRoute("{controller}"); 619var route = CreateRoute("{controller}/{action}"); 633var route = CreateRoute("{controller}/{action}"); 669var route = CreateRoute("{controller}/{action}"); 684var route = CreateRoute("{controller}/{action}"); 702var route = CreateRoute("{controller}/{action}"); 720var route = CreateRoute("{controller}/{action}"); 738var route = CreateRoute("{controller}/{action}"); 768var route = CreateRoute( 809var route = CreateRoute( 839var route = CreateRoute("{controller}", handleRequest: false); 855var route = CreateRoute("{controller}/{action}"); 873var route = CreateRoute( 892var route = CreateRoute( 914var route = CreateRoute( 933var route = CreateRoute( 967var route = CreateRoute( 992var route = CreateRoute( 1023var route = CreateRoute( 1053var route = CreateRoute( 1084var route = CreateRoute( 1112var route = CreateRoute("{controller}/{action}/{id:int}"); 1129var route = CreateRoute("{controller}/{action}/{id:int}"); 1144var route = CreateRoute("{controller}/{action}/{id:int?}"); 1161var route = CreateRoute("{controller}/{action}/{id:int?}"); 1178var route = CreateRoute("{controller}/{action}/{id:int?}"); 1193var route = CreateRoute("{controller}/{action}/{id:int:range(1,20)}"); 1211var route = CreateRoute( 1233var route = CreateRoute( 1255var route = CreateRoute( 1277var route = CreateRoute( 1299var route = CreateRoute( 1321var route = CreateRoute( 1343var route = CreateRoute( 1365var route = CreateRoute( 1387var route = CreateRoute( 1409var route = CreateRoute( 1433var route = CreateRoute( 1457var route = CreateRoute( 1481var route = CreateRoute( 1576var templateRoute = (Route)routeBuilder.Routes[0]; 1597var templateRoute = (Route)routeBuilder.Routes[0]; 1639var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1660var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1681var constraints = ((Route)routeBuilder.Routes[0]).Constraints; 1695var name = ((Route)routeBuilder.Routes[0]).Name; 1713var name = ((Route)routeBuilder.Routes[0]).Name; 1774private static Route CreateRoute(string routeName, string template, bool handleRequest = true) 1786private static Route CreateRoute(string template, bool handleRequest = true) 1791private static Route CreateRoute( 1807private static Route CreateRoute(IRouter target, string template) 1818private static Route CreateRoute(
TemplateParserDefaultValuesTests.cs (2)
30var defaults = ((Route)routeBuilder.Routes[0]).Defaults; 49var defaults = ((Route)routeBuilder.Routes[0]).Defaults;