14 instantiations of VirtualPathData
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\UrlHelperTest.cs (1)
119.Returns(new VirtualPathData(mockHttpRoute.Object, mockTemplateValue));
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (3)
VirtualPathDataTests.cs (3)
18var pathData = new VirtualPathData(router, path, null); 37var pathData = new VirtualPathData(router, path, dataTokens); 55var pathData = new VirtualPathData(router, virtualPath: null);
Microsoft.AspNetCore.Routing (3)
RouteBase.cs (1)
186pathData = new VirtualPathData(this, virtualPath);
RouteCollection.cs (1)
184return new VirtualPathData(pathData.Router, url, pathData.DataTokens);
Tree\TreeRouter.cs (1)
347return new VirtualPathData(this, path);
Microsoft.AspNetCore.Routing.Tests (7)
RouteCollectionTest.cs (5)
39.Returns(new VirtualPathData(target.Object, returnUrl)); 70.Returns(new VirtualPathData(target.Object, returnUrl)); 104.Returns(new VirtualPathData(target.Object, returnUrl)); 546c.RouteName == name ? new VirtualPathData(target.Object, matchValue) : null) 680.Returns(accept || match ? new VirtualPathData(target.Object, matchValue) : null)
RouterMiddlewareTest.cs (1)
137return new VirtualPathData(this, "");
RouteTest.cs (1)
763.Returns(() => new VirtualPathData(target.Object, path, dataTokens));
138 references to VirtualPathData
Microsoft.AspNetCore.Mvc.Core (13)
Routing\AttributeRoute.cs (2)
38public VirtualPathData GetVirtualPath(VirtualPathContext context) 292public VirtualPathData? GetVirtualPath(VirtualPathContext context)
Routing\MvcAttributeRouteHandler.cs (1)
34public VirtualPathData? GetVirtualPath(VirtualPathContext context)
Routing\MvcRouteHandler.cs (1)
31public VirtualPathData? GetVirtualPath(VirtualPathContext context)
Routing\NullRouter.cs (1)
16public VirtualPathData? GetVirtualPath(VirtualPathContext context)
Routing\UrlHelper.cs (8)
59var virtualPathData = GetVirtualPathData(routeName: null, values: valuesDictionary); 69var virtualPathData = GetVirtualPathData(routeContext.RouteName, valuesDictionary); 74/// Gets the <see cref="VirtualPathData"/> for the specified <paramref name="routeName"/> and route 77/// <param name="routeName">The name of the route that is used to generate the <see cref="VirtualPathData"/>. 83/// <returns>The <see cref="VirtualPathData"/>.</returns> 84protected virtual VirtualPathData? GetVirtualPathData(string? routeName, RouteValueDictionary values) 95/// <param name="pathData">The <see cref="VirtualPathData"/>.</param> 98protected virtual string? GenerateUrl(string? protocol, string? host, VirtualPathData? pathData, string? fragment)
Microsoft.AspNetCore.Mvc.Core.Test (1)
Routing\UrlHelperTest.cs (1)
140public VirtualPathData GetVirtualPath(VirtualPathContext context)
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (3)
VirtualPathDataTests.cs (3)
18var pathData = new VirtualPathData(router, path, null); 37var pathData = new VirtualPathData(router, path, dataTokens); 55var pathData = new VirtualPathData(router, virtualPath: null);
Microsoft.AspNetCore.Mvc.ViewFeatures.Test (1)
RemoteAttributeTest.cs (1)
458.Returns((VirtualPathData)null);
Microsoft.AspNetCore.Routing (20)
NullRouter.cs (1)
14public VirtualPathData? GetVirtualPath(VirtualPathContext context)
Route.cs (1)
99protected override VirtualPathData? OnVirtualPathGenerated(VirtualPathContext context)
RouteBase.cs (4)
102/// <returns>A <see cref="VirtualPathData"/> instance.</returns> 103protected abstract VirtualPathData? OnVirtualPathGenerated(VirtualPathContext context); 144public virtual VirtualPathData? GetVirtualPath(VirtualPathContext context) 169var pathData = OnVirtualPathGenerated(context);
RouteCollection.cs (7)
97public virtual VirtualPathData? GetVirtualPath(VirtualPathContext context) 103VirtualPathData? namedRoutePathData = null; 110var pathData = GetVirtualPath(context, _unnamedRoutes); 127private static VirtualPathData? GetVirtualPath(VirtualPathContext context, List<IRouter> routes) 133var pathData = route.GetVirtualPath(context); 143private VirtualPathData? NormalizeVirtualPath(VirtualPathData? pathData)
RouteHandler.cs (1)
33public VirtualPathData? GetVirtualPath(VirtualPathContext context)
Tree\TreeRouter.cs (6)
138public VirtualPathData GetVirtualPath(VirtualPathContext context) 160var path = GenerateVirtualPath(context, matches[i].Match.Entry, matches[i].Match.TemplateBinder); 266private VirtualPathData GetVirtualPathForNamedRoute(VirtualPathContext context) 270var path = GenerateVirtualPath(context, match.Entry, match.TemplateBinder); 279private VirtualPathData GenerateVirtualPath( 333var pathData = entry.Handler.GetVirtualPath(context);
Microsoft.AspNetCore.Routing.Abstractions (4)
IRouter.cs (2)
21/// <returns>A <see cref="VirtualPathData"/> object. Can be null.</returns> 22VirtualPathData? GetVirtualPath(VirtualPathContext context);
VirtualPathData.cs (2)
16/// Initializes a new instance of the <see cref="VirtualPathData"/> class. 26/// Initializes a new instance of the <see cref="VirtualPathData"/> class.
Microsoft.AspNetCore.Routing.Microbenchmarks (6)
LinkGeneration\LinkGenerationGithubBenchmark.cs (1)
56var virtualPathData = _treeRouter.GetVirtualPath(new VirtualPathContext(
LinkGeneration\SingleRouteWithConstraintsBenchmark.cs (1)
40var virtualPathData = _treeRouter.GetVirtualPath(new VirtualPathContext(
LinkGeneration\SingleRouteWithNoParametersBenchmark.cs (1)
40var virtualPathData = _treeRouter.GetVirtualPath(new VirtualPathContext(
LinkGeneration\SingleRouteWithParametersBenchmark.cs (1)
40var virtualPathData = _treeRouter.GetVirtualPath(new VirtualPathContext(
src\Http\Routing\test\UnitTests\Matching\RouteMatcherBuilder.cs (1)
90public VirtualPathData GetVirtualPath(VirtualPathContext context)
src\Http\Routing\test\UnitTests\Matching\TreeRouterMatcherBuilder.cs (1)
92public VirtualPathData GetVirtualPath(VirtualPathContext context)
Microsoft.AspNetCore.Routing.Tests (90)
Matching\RouteMatcherBuilder.cs (1)
90public VirtualPathData GetVirtualPath(VirtualPathContext context)
Matching\TreeRouterMatcherBuilder.cs (1)
92public VirtualPathData GetVirtualPath(VirtualPathContext context)
RouteCollectionTest.cs (10)
49var pathData = routeCollection.GetVirtualPath(virtualPathContext); 77var pathData = routeCollection.GetVirtualPath(virtualPathContext); 115var pathData = routeCollection.GetVirtualPath(virtualPathContext); 144var pathData = routeCollection.GetVirtualPath(pathContext); 248var pathData = routeCollection.GetVirtualPath(virtualPathContext); 265var stringVirtualPath = routeCollection.GetVirtualPath(virtualPathContext); 282var pathData = routeCollection.GetVirtualPath(virtualPathContext); 390var pathData = routeCollection.GetVirtualPath(context); 445var pathData = routeCollection.GetVirtualPath(context); 469var path = routeCollection.GetVirtualPath(virtualPathContext);
RouterMiddlewareTest.cs (1)
135public VirtualPathData GetVirtualPath(VirtualPathContext context)
RouteTest.cs (40)
607var pathData = route.GetVirtualPath(context); 623var path = route.GetVirtualPath(context); 639var pathData = route.GetVirtualPath(context); 672var pathData = route.GetVirtualPath(context); 690var pathData = route.GetVirtualPath(context); 708var pathData = route.GetVirtualPath(context); 726var pathData = route.GetVirtualPath(context); 744var pathData = route.GetVirtualPath(context); 778var pathData = route.GetVirtualPath(context); 819var pathData = route.GetVirtualPath(context); 843var pathData = route.GetVirtualPath(context); 859var pathData = route.GetVirtualPath(context); 880var virtualPath = route.GetVirtualPath(context); 899var pathData = route.GetVirtualPath(context); 921var virtualPath = route.GetVirtualPath(context); 940var pathData = route.GetVirtualPath(context); 974var pathData = route.GetVirtualPath(context); 1006var pathData = route.GetVirtualPath(context); 1037var pathData = route.GetVirtualPath(context); 1067var pathData = route.GetVirtualPath(context); 1098var pathData = route.GetVirtualPath(context); 1117var pathData = route.GetVirtualPath(context); 1134var path = route.GetVirtualPath(context); 1149var pathData = route.GetVirtualPath(context); 1166var pathData = route.GetVirtualPath(context); 1183var path = route.GetVirtualPath(context); 1198var pathData = route.GetVirtualPath(context); 1221var pathData = route.GetVirtualPath(context); 1243var pathData = route.GetVirtualPath(context); 1265var pathData = route.GetVirtualPath(context); 1287var pathData = route.GetVirtualPath(context); 1309var pathData = route.GetVirtualPath(context); 1331var pathData = route.GetVirtualPath(context); 1353var pathData = route.GetVirtualPath(context); 1375var pathData = route.GetVirtualPath(context); 1397var pathData = route.GetVirtualPath(context); 1420var pathData = route.GetVirtualPath(context); 1444var pathData = route.GetVirtualPath(context); 1468var pathData = route.GetVirtualPath(context); 1492var pathData = route.GetVirtualPath(context);
Tree\TreeRouterTest.cs (37)
816var result = route.GetVirtualPath(context); 838var result = route.GetVirtualPath(context); 871var result = route.GetVirtualPath(context); 903var result = route.GetVirtualPath(context); 938var result = route.GetVirtualPath(context); 978var result = route.GetVirtualPath(context); 1021var result = route.GetVirtualPath(context); 1051var result = route.GetVirtualPath(context); 1081var result = route.GetVirtualPath(context); 1103var result = route.GetVirtualPath(context); 1139var result = route.GetVirtualPath(context); 1166var result = route.GetVirtualPath(context); 1196var result = route.GetVirtualPath(context); 1225var result = route.GetVirtualPath(context); 1245var pathData = route.GetVirtualPath(context); 1265var pathData = route.GetVirtualPath(context); 1285var path = route.GetVirtualPath(context); 1302var pathData = route.GetVirtualPath(context); 1322var pathData = route.GetVirtualPath(context); 1342var pathData = route.GetVirtualPath(context); 1367var pathData = route.GetVirtualPath(context); 1387var pathData = route.GetVirtualPath(context); 1408var pathData = route.GetVirtualPath(context); 1429var path = route.GetVirtualPath(context); 1446var pathData = route.GetVirtualPath(context); 1466var pathData = route.GetVirtualPath(context); 1488var pathData = route.GetVirtualPath(context); 1513var pathData = route.GetVirtualPath(context); 1538var pathData = route.GetVirtualPath(context); 1565var pathData = route.GetVirtualPath(context); 1592var pathData = route.GetVirtualPath(context); 1686var pathData = route.GetVirtualPath(context); 1909var pathData = route.GetVirtualPath(context); 1931var pathData = route.GetVirtualPath(context); 1953var pathData = route.GetVirtualPath(context); 1975var pathData = route.GetVirtualPath(context); 2101public VirtualPathData GetVirtualPath(VirtualPathContext context)