2 writes to ViewEnginePath
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModel.cs (2)
34ViewEnginePath = viewEnginePath ?? throw new ArgumentNullException(nameof(viewEnginePath)); 51ViewEnginePath = other.ViewEnginePath;
35 references to ViewEnginePath
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
58model.RouteValues.Add("page", model.ViewEnginePath);
Microsoft.AspNetCore.Mvc.RazorPages (10)
ApplicationModels\PageConventionCollection.cs (2)
298string.Equals(model.ViewEnginePath, _path, StringComparison.OrdinalIgnoreCase)) 326PathBelongsToFolder(_folderPath, model.ViewEnginePath))
ApplicationModels\PageRouteModel.cs (4)
51ViewEnginePath = other.ViewEnginePath; 69/// e.g. the <see cref="ViewEnginePath"/> for the file /Pages/Catalog/Antiques.cshtml is <c>/Catalog/Antiques</c> 73/// e.g. the <see cref="ViewEnginePath"/> for the file Areas/Identity/Pages/Manage/Accounts.cshtml, is <c>/Manage/Accounts</c>. 99/// The value of <see cref="ViewEnginePath"/> is considered an implicit route value corresponding
ApplicationModels\PageRouteModelFactory.cs (1)
58model.RouteValues.Add("page", model.ViewEnginePath);
Infrastructure\PageActionDescriptorProvider.cs (3)
102DisplayName = $"Page: {model.ViewEnginePath}", 107ViewEnginePath = model.ViewEnginePath, 120descriptor.RouteValues.Add("page", model.ViewEnginePath);
Microsoft.AspNetCore.Mvc.RazorPages.Test (24)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (17)
41Assert.Equal("/About", result.ViewEnginePath); 56Assert.Equal("/Home", result.ViewEnginePath); 103Assert.Equal("/About", result.ViewEnginePath); 123Assert.Equal("/Manage/Index", result.ViewEnginePath); 143Assert.Equal("/Manage/Edit", result.ViewEnginePath); 191Assert.Equal("/Manage/Home", result.ViewEnginePath); 211Assert.Equal("/Contact", result.ViewEnginePath); 251Assert.Equal("/Pages/Index", result.ViewEnginePath); 260Assert.Equal("/Pages/Admin/Index", result.ViewEnginePath); 293Assert.Equal("/Index", result.ViewEnginePath); 302Assert.Equal("/Admin/Index", result.ViewEnginePath); 338Assert.Equal("/Index", result.ViewEnginePath); 346Assert.Equal("/Home", result.ViewEnginePath); 382Assert.Equal("/About", result.ViewEnginePath); 387Assert.Equal("/Home", result.ViewEnginePath); 413Assert.Equal("/_About", result.ViewEnginePath); 428Assert.Equal("/Home", result.ViewEnginePath);
ApplicationModels\PageRouteModelFactoryTest.cs (5)
24Assert.Equal("/Users/Profile", routeModel.ViewEnginePath); 53Assert.Equal("/Users/Profile/Index", routeModel.ViewEnginePath); 82Assert.Equal("/Users/Profile/Index", routeModel.ViewEnginePath); 110Assert.Equal("/Users/Profile", routeModel.ViewEnginePath); 144Assert.Equal("/Users/Profile/Index", routeModel.ViewEnginePath);
DependencyInjection\PageConventionCollectionExtensionsTest.cs (2)
890Assert.Equal("/Index", model.ViewEnginePath); 910Assert.Equal("/About", model.ViewEnginePath);