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