1 implementation of INamedRouter
Microsoft.AspNetCore.Routing (1)
RouteBase.cs (1)
16
public abstract partial class RouteBase : IRouter,
INamedRouter
14 references to INamedRouter
Microsoft.AspNetCore.Routing (5)
RouteCollection.cs (5)
21
private readonly Dictionary<string,
INamedRouter
> _namedRoutes =
22
new Dictionary<string,
INamedRouter
>(StringComparer.OrdinalIgnoreCase);
48
var
namedRouter = router as
INamedRouter
;
105
if (_namedRoutes.TryGetValue(context.RouteName, out
var
matchedNamedRoute))
Microsoft.AspNetCore.Routing.Tests (9)
RouteCollectionTest.cs (9)
252
var
namedRouter = Assert.IsAssignableFrom<
INamedRouter
>(pathData.Router);
286
var
namedRouter = Assert.IsAssignableFrom<
INamedRouter
>(pathData.Router);
313
var
namedRoute = CreateNamedRoute("Ambiguous", accept: false);
449
Assert.Same(expectedRouteToMatch, ((
INamedRouter
)pathData.Router).Name);
499
var
route1 = CreateNamedRoute(routeName, accept: true);
535
private static
INamedRouter
CreateNamedRoute(string name, bool accept = false, string matchValue = null)
542
var target = new Mock<
INamedRouter
>(MockBehavior.Strict);