2 interfaces inheriting from IRouter
Microsoft.AspNetCore.Routing (2)
INamedRouter.cs (1)
9public interface INamedRouter : IRouter
IRouteCollection.cs (1)
9public interface IRouteCollection : IRouter
9 implementations of IRouter
Microsoft.AspNetCore.Mvc.Core (5)
Routing\AttributeRoute.cs (2)
15internal sealed class AttributeRoute : IRouter 288private sealed class NullRouter : IRouter
Routing\MvcAttributeRouteHandler.cs (1)
13internal sealed class MvcAttributeRouteHandler : IRouter
Routing\MvcRouteHandler.cs (1)
12internal sealed class MvcRouteHandler : IRouter
Routing\NullRouter.cs (1)
8internal sealed class NullRouter : IRouter
Microsoft.AspNetCore.Routing (4)
NullRouter.cs (1)
6internal sealed class NullRouter : IRouter
RouteBase.cs (1)
16public abstract partial class RouteBase : IRouter, INamedRouter
RouteHandler.cs (1)
13public class RouteHandler : IRouteHandler, IRouter
Tree\TreeRouter.cs (1)
22public partial class TreeRouter : IRouter
107 references to IRouter
Microsoft.AspNetCore.Mvc.Core (13)
ActionConstraints\HttpMethodActionConstraint.cs (1)
11/// HTTP method filtering when MVC is used with legacy <see cref="IRouter" />
Builder\MvcApplicationBuilderExtensions.cs (4)
96Routes = new List<IRouter>(); 102public IRouter? DefaultHandler { get; set; } 109public IList<IRouter> Routes { get; } 111public IRouter Build()
Routing\AttributeRoute.cs (3)
19private readonly Func<ActionDescriptor[], IRouter> _handlerFactory; 26Func<ActionDescriptor[], IRouter> handlerFactory) 113var handler = _handlerFactory(group.ToArray());
Routing\AttributeRouting.cs (1)
17public static IRouter CreateAttributeMegaRoute(IServiceProvider services)
Routing\KnownRouteValueConstraint.cs (1)
36IRouter? route,
Routing\NullRouter.cs (1)
10public static readonly IRouter Instance = new NullRouter();
Routing\UrlHelper.cs (2)
31/// Gets the top-level <see cref="IRouter"/> associated with the current request. Generally an 34protected IRouter Router
Microsoft.AspNetCore.Routing (74)
Builder\RoutingBuilderExtensions.cs (4)
15/// Adds a <see cref="RouterMiddleware"/> middleware to the specified <see cref="IApplicationBuilder"/> with the specified <see cref="IRouter"/>. 18/// <param name="router">The <see cref="IRouter"/> to use for routing requests.</param> 20public static IApplicationBuilder UseRouter(this IApplicationBuilder builder, IRouter router) 38/// with the <see cref="IRouter"/> built from configured <see cref="IRouteBuilder"/>.
Constraints\BoolRouteConstraint.cs (1)
27IRouter? route,
Constraints\CompositeRouteConstraint.cs (1)
41IRouter? route,
Constraints\DateTimeRouteConstraint.cs (1)
33IRouter? route,
Constraints\DecimalRouteConstraint.cs (1)
27IRouter? route,
Constraints\DoubleRouteConstraint.cs (1)
27IRouter? route,
Constraints\FileNameRouteConstraint.cs (1)
98IRouter? route,
Constraints\FloatRouteConstraint.cs (1)
27IRouter? route,
Constraints\GuidRouteConstraint.cs (1)
29IRouter? route,
Constraints\HttpMethodRouteConstraint.cs (1)
35IRouter? route,
Constraints\IntRouteConstraint.cs (1)
27IRouter? route,
Constraints\LengthRouteConstraint.cs (1)
83IRouter? route,
Constraints\LongRouteConstraint.cs (1)
27IRouter? route,
Constraints\MaxLengthRouteConstraint.cs (1)
47IRouter? route,
Constraints\MaxRouteConstraint.cs (1)
41IRouter? route,
Constraints\MinLengthRouteConstraint.cs (1)
47IRouter? route,
Constraints\MinRouteConstraint.cs (1)
41IRouter? route,
Constraints\NonFileNameRouteConstraint.cs (1)
94IRouter? route,
Constraints\NullRouteConstraint.cs (1)
21public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Constraints\OptionalRouteConstraint.cs (1)
41IRouter? route,
Constraints\RangeRouteConstraint.cs (1)
55IRouter? route,
Constraints\RegexErrorStubRouteConstraint.cs (1)
24bool IRouteConstraint.Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
Constraints\RegexRouteConstraint.cs (1)
82IRouter? route,
Constraints\RequiredRouteConstraint.cs (1)
21IRouter? route,
Constraints\StringRouteConstraint.cs (1)
29public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)
INamedRouter.cs (1)
7/// An interface for an <see cref="IRouter"/> with a name.
IRouteBuilder.cs (6)
20/// Gets or sets the default <see cref="IRouter"/> that is used as a handler if an <see cref="IRouter"/> 23IRouter? DefaultHandler { get; set; } 33IList<IRouter> Routes { get; } 36/// Builds an <see cref="IRouter"/> that routes the routes specified in the <see cref="Routes"/> property. 38IRouter Build();
IRouteCollection.cs (2)
14/// <param name="router">A <see cref="IRouter"/> instance.</param> 15void Add(IRouter router);
Route.cs (7)
13private readonly IRouter _target; 18/// <param name="target">An <see cref="IRouter"/> instance associated with the component.</param> 22IRouter target, 38/// <param name="target">An <see cref="IRouter"/> instance associated with the component.</param> 45IRouter target, 58/// <param name="target">An <see cref="IRouter"/> instance associated with the component.</param> 66IRouter target,
RouteBase.cs (1)
14/// Base class implementation of an <see cref="IRouter"/>.
RouteBuilder.cs (7)
30/// <param name="defaultHandler">The default <see cref="IRouter"/> used if a new route is added without a handler.</param> 31public RouteBuilder(IApplicationBuilder applicationBuilder, IRouter? defaultHandler) 47Routes = new List<IRouter>(); 54public IRouter? DefaultHandler { get; set; } 60public IList<IRouter> Routes { get; } 63public IRouter Build() 67foreach (var route in Routes)
RouteCollection.cs (9)
19private readonly List<IRouter> _routes = new List<IRouter>(); 20private readonly List<IRouter> _unnamedRoutes = new List<IRouter>(); 30public IRouter this[int index] 44public void Add(IRouter router) 74var route = this[i]; 127private static VirtualPathData? GetVirtualPath(VirtualPathContext context, List<IRouter> routes) 131var route = routes[i];
RouteConstraintMatcher.cs (1)
40IRouter route,
RouterMiddleware.cs (3)
17private readonly IRouter _router; 24/// <param name="router">The <see cref="IRouter"/> to use for routing requests.</param> 28IRouter router)
Tree\InboundRouteEntry.cs (2)
39/// Gets or sets the <see cref="IRouter"/> to invoke when this entry matches. 41public IRouter Handler { get; set; }
Tree\OutboundRouteEntry.cs (2)
27/// The <see cref="IRouter"/> to invoke when this entry matches. 29public IRouter Handler { get; set; }
Tree\TreeRouteBuilder.cs (4)
73/// <param name="handler">The <see cref="IRouter"/> for handling the route.</param> 81IRouter handler, 173/// <param name="handler">The <see cref="IRouter"/> for handling the link generation.</param> 180IRouter handler,
Tree\TreeRouter.cs (1)
20/// An <see cref="IRouter"/> implementation for attribute routing.
Microsoft.AspNetCore.Routing.Abstractions (19)
IRouteConstraint.cs (1)
37IRouter? route,
RouteContext.cs (2)
9/// A context object for <see cref="IRouter.RouteAsync(RouteContext)"/>. 27/// Gets or sets the handler for the request. An <see cref="IRouter"/> should set <see cref="Handler"/>
RouteData.cs (12)
18private List<IRouter>? _routers; 40_routers = new List<IRouter>(other.Routers); 82/// Gets the list of <see cref="IRouter"/> instances on the current routing path. 84public IList<IRouter> Routers 90_routers = new List<IRouter>(); 122/// <see cref="PushState(IRouter, RouteValueDictionary, RouteValueDictionary)"/>. 126/// An <see cref="IRouter"/> to append to <see cref="Routers"/>. If <c>null</c>, then <see cref="Routers"/> 138public RouteDataSnapshot PushState(IRouter? router, RouteValueDictionary? values, RouteValueDictionary? dataTokens) 142List<IRouter>? routers = null; 148routers = new List<IRouter>(count.Value); 203private readonly IList<IRouter>? _routers; 216IList<IRouter>? routers,
VirtualPathData.cs (4)
20public VirtualPathData(IRouter router, string virtualPath) 32IRouter router, 60/// Gets or sets the <see cref="IRouter"/> that was used to generate the URL. 62public IRouter Router { get; set; }
Microsoft.AspNetCore.StaticAssets (1)
Development\StaticAssetDevelopmentRuntimeHandler.cs (1)
402public bool Match(HttpContext? httpContext, IRouter? route, string routeKey, RouteValueDictionary values, RouteDirection routeDirection)