2 writes to ViewEnginePath
Microsoft.AspNetCore.Mvc.RazorPages (2)
ApplicationModels\PageRouteModel.cs (2)
34
ViewEnginePath
= viewEnginePath ?? throw new ArgumentNullException(nameof(viewEnginePath));
51
ViewEnginePath
= other.ViewEnginePath;
35 references to ViewEnginePath
Microsoft.AspNetCore.Mvc.Razor.RuntimeCompilation (1)
src\Mvc\Mvc.RazorPages\src\ApplicationModels\PageRouteModelFactory.cs (1)
58
model.RouteValues.Add("page", model.
ViewEnginePath
);
Microsoft.AspNetCore.Mvc.RazorPages (10)
ApplicationModels\PageConventionCollection.cs (2)
298
string.Equals(model.
ViewEnginePath
, _path, StringComparison.OrdinalIgnoreCase))
326
PathBelongsToFolder(_folderPath, model.
ViewEnginePath
))
ApplicationModels\PageRouteModel.cs (4)
51
ViewEnginePath = 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)
58
model.RouteValues.Add("page", model.
ViewEnginePath
);
Infrastructure\PageActionDescriptorProvider.cs (3)
102
DisplayName = $"Page: {model.
ViewEnginePath
}",
107
ViewEnginePath = model.
ViewEnginePath
,
120
descriptor.RouteValues.Add("page", model.
ViewEnginePath
);
Microsoft.AspNetCore.Mvc.RazorPages.Test (24)
ApplicationModels\CompiledPageRouteModelProviderTest.cs (17)
41
Assert.Equal("/About", result.
ViewEnginePath
);
56
Assert.Equal("/Home", result.
ViewEnginePath
);
103
Assert.Equal("/About", result.
ViewEnginePath
);
123
Assert.Equal("/Manage/Index", result.
ViewEnginePath
);
143
Assert.Equal("/Manage/Edit", result.
ViewEnginePath
);
191
Assert.Equal("/Manage/Home", result.
ViewEnginePath
);
211
Assert.Equal("/Contact", result.
ViewEnginePath
);
251
Assert.Equal("/Pages/Index", result.
ViewEnginePath
);
260
Assert.Equal("/Pages/Admin/Index", result.
ViewEnginePath
);
293
Assert.Equal("/Index", result.
ViewEnginePath
);
302
Assert.Equal("/Admin/Index", result.
ViewEnginePath
);
338
Assert.Equal("/Index", result.
ViewEnginePath
);
346
Assert.Equal("/Home", result.
ViewEnginePath
);
382
Assert.Equal("/About", result.
ViewEnginePath
);
387
Assert.Equal("/Home", result.
ViewEnginePath
);
413
Assert.Equal("/_About", result.
ViewEnginePath
);
428
Assert.Equal("/Home", result.
ViewEnginePath
);
ApplicationModels\PageRouteModelFactoryTest.cs (5)
24
Assert.Equal("/Users/Profile", routeModel.
ViewEnginePath
);
53
Assert.Equal("/Users/Profile/Index", routeModel.
ViewEnginePath
);
82
Assert.Equal("/Users/Profile/Index", routeModel.
ViewEnginePath
);
110
Assert.Equal("/Users/Profile", routeModel.
ViewEnginePath
);
144
Assert.Equal("/Users/Profile/Index", routeModel.
ViewEnginePath
);
DependencyInjection\PageConventionCollectionExtensionsTest.cs (2)
890
Assert.Equal("/Index", model.
ViewEnginePath
);
910
Assert.Equal("/About", model.
ViewEnginePath
);