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