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