1 write to VirtualPath
Microsoft.AspNetCore.Routing.Abstractions (1)
VirtualPathData.cs (1)
39
VirtualPath
= virtualPath;
84 references to VirtualPath
Microsoft.AspNetCore.Mvc.Core (1)
Routing\UrlHelper.cs (1)
100
return GenerateUrl(protocol, host, pathData?.
VirtualPath
, fragment);
Microsoft.AspNetCore.Mvc.Routing.Abstractions.Tests (3)
VirtualPathDataTests.cs (3)
22
Assert.Equal(path, pathData.
VirtualPath
);
41
Assert.Equal(path, pathData.
VirtualPath
);
59
Assert.Empty(pathData.
VirtualPath
);
Microsoft.AspNetCore.Routing (1)
RouteCollection.cs (1)
152
var url = pathData.
VirtualPath
;
Microsoft.AspNetCore.Routing.Microbenchmarks (4)
LinkGeneration\LinkGenerationGithubBenchmark.cs (1)
61
AssertUrl("/repos/aspnet/routing/issues/comments/20202", virtualPathData?.
VirtualPath
);
LinkGeneration\SingleRouteWithConstraintsBenchmark.cs (1)
53
AssertUrl("/Customers/Details/Administration/US/10", virtualPathData?.
VirtualPath
);
LinkGeneration\SingleRouteWithNoParametersBenchmark.cs (1)
50
AssertUrl("/Products/Details", virtualPathData?.
VirtualPath
);
LinkGeneration\SingleRouteWithParametersBenchmark.cs (1)
53
AssertUrl("/Customers/Details/Administration/US/10", virtualPathData?.
VirtualPath
);
Microsoft.AspNetCore.Routing.Tests (75)
RouteCollectionTest.cs (8)
52
Assert.Equal(expectedUrl, pathData.
VirtualPath
);
80
Assert.Equal(lowercaseUrl, pathData.
VirtualPath
);
118
Assert.Equal(expectedUrl, pathData.
VirtualPath
);
150
Assert.Equal(virtualPath, pathData.
VirtualPath
);
251
Assert.Equal(expectedUrl, pathData.
VirtualPath
);
285
Assert.Equal("/route1", pathData.
VirtualPath
);
393
Assert.Equal(expectedUrl, pathData.
VirtualPath
);
448
Assert.Equal(expectedUrl, pathData.
VirtualPath
);
RouteTest.cs (35)
610
Assert.Equal("/Home", pathData.
VirtualPath
);
642
Assert.Equal("/Home/Index?name=name%20with%20%25special%20%23characters", pathData.
VirtualPath
);
675
Assert.Equal(expected, pathData.
VirtualPath
);
693
Assert.Equal("/Home/Index?color=red&color=green&color=blue", pathData.
VirtualPath
);
711
Assert.Equal("/Home/Index?items=10&items=20&items=30", pathData.
VirtualPath
);
729
Assert.Equal("/Home/Index", pathData.
VirtualPath
);
747
Assert.Equal("/Home/Index?page=1&color=red&color=green&color=blue&message=textfortest", pathData.
VirtualPath
);
783
Assert.Equal(path, pathData.
VirtualPath
);
824
Assert.Equal(path, pathData.
VirtualPath
);
846
Assert.Equal("/Home", pathData.
VirtualPath
);
862
Assert.Equal("/Home/Index", pathData.
VirtualPath
);
903
Assert.Equal("/hello/1234", pathData.
VirtualPath
);
944
Assert.Equal("/hello/1234", pathData.
VirtualPath
);
978
Assert.Equal("/hello/1234", pathData.
VirtualPath
);
1009
Assert.Equal("/slug/Home/Store", pathData.
VirtualPath
);
1040
Assert.Equal("/slug/Home/Store", pathData.
VirtualPath
);
1070
Assert.Equal("/slug/Shopping", pathData.
VirtualPath
);
1101
Assert.Equal("/slug/Home/Store", pathData.
VirtualPath
);
1120
Assert.Equal("/Home/Index/4", pathData.
VirtualPath
);
1152
Assert.Equal("/Home/Index/98", pathData.
VirtualPath
);
1169
Assert.Equal("/Home/Index", pathData.
VirtualPath
);
1201
Assert.Equal("/Home/Index/14", pathData.
VirtualPath
);
1224
Assert.Equal("/Home/Index/products", pathData.
VirtualPath
);
1246
Assert.Equal("/Home/Index/products.xml", pathData.
VirtualPath
);
1268
Assert.Equal("/Home/Index/products", pathData.
VirtualPath
);
1290
Assert.Equal("/Home/Index/products.xml", pathData.
VirtualPath
);
1312
Assert.Equal("/Home/Index/products", pathData.
VirtualPath
);
1334
Assert.Equal("/Home/Index/products?format=json", pathData.
VirtualPath
);
1356
Assert.Equal("/Home/Index/.products", pathData.
VirtualPath
);
1378
Assert.Equal("/Home/Index/", pathData.
VirtualPath
);
1400
Assert.Equal("/Home/Index", pathData.
VirtualPath
);
1424
Assert.Equal("/a/15/17", pathData.
VirtualPath
);
1448
Assert.Equal("/a/15/17", pathData.
VirtualPath
);
1472
Assert.Equal("/a/15/17", pathData.
VirtualPath
);
1496
Assert.Equal("/a", pathData.
VirtualPath
);
Tree\TreeRouterTest.cs (32)
820
Assert.Equal(expectedPath, result.
VirtualPath
);
843
Assert.Equal("/template", result.
VirtualPath
);
875
Assert.Equal(expectedPath, result.
VirtualPath
);
907
Assert.Equal(expectedPath, result.
VirtualPath
);
942
Assert.Equal("/template/5", result.
VirtualPath
);
988
Assert.Equal(expectedPath, result.
VirtualPath
);
1025
Assert.Equal("/template/5", result.
VirtualPath
);
1055
Assert.Equal("/template/5", result.
VirtualPath
);
1085
Assert.Equal("/first/5", result.
VirtualPath
);
1107
Assert.Equal("/a/b/3/d", result.
VirtualPath
);
1143
Assert.Equal("/named", result.
VirtualPath
);
1229
Assert.Equal("/template/5", result.
VirtualPath
);
1249
Assert.Equal("/api/Store", pathData.
VirtualPath
);
1269
Assert.Equal("/api/Store", pathData.
VirtualPath
);
1306
Assert.Equal("/api/Store", pathData.
VirtualPath
);
1326
Assert.Equal("/Customers/SeparatePageModels", pathData.
VirtualPath
);
1346
Assert.Equal("/api/Store/Index", pathData.
VirtualPath
);
1371
Assert.Equal("/api/AwesomeCo/dosomething/Store/Index", pathData.
VirtualPath
);
1391
Assert.Equal("/api/Store", pathData.
VirtualPath
);
1412
Assert.Equal("/api/Store/Index/5", pathData.
VirtualPath
);
1450
Assert.Equal("/api/Store", pathData.
VirtualPath
);
1470
Assert.Equal("/api/Store?id=5", pathData.
VirtualPath
);
1492
Assert.Equal("/api2/Blog", pathData.
VirtualPath
);
1517
Assert.Equal("/Help/Store", pathData.
VirtualPath
);
1542
Assert.Equal("/Help/Store", pathData.
VirtualPath
);
1569
Assert.Equal("/Help/Store", pathData.
VirtualPath
);
1596
Assert.Equal("/Store", pathData.
VirtualPath
);
1690
Assert.Equal(expected, pathData.
VirtualPath
);
1913
Assert.Equal("/Help/Store", pathData.
VirtualPath
);
1935
Assert.Equal("/Help/Store", pathData.
VirtualPath
);
1957
Assert.Equal("/Help/Store", pathData.
VirtualPath
);
1979
Assert.Equal("/Help/Store", pathData.
VirtualPath
);