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