47 instantiations of RazorPageResult
Microsoft.AspNetCore.Mvc.Razor (6)
RazorViewEngine.cs (6)
115return new RazorPageResult(pageName, Enumerable.Empty<string>()); 122return new RazorPageResult(pageName, razorPage); 126return new RazorPageResult(pageName, cacheResult.SearchedLocations!); 138return new RazorPageResult(pagePath, Enumerable.Empty<string>()); 145return new RazorPageResult(pagePath, razorPage); 149return new RazorPageResult(pagePath, cacheResult.SearchedLocations!);
Microsoft.AspNetCore.Mvc.Razor.Test (41)
RazorViewTest.cs (41)
186.Returns(new RazorPageResult(LayoutPath, layout)); 261.Returns(new RazorPageResult(LayoutPath, layout)); 441.Returns(new RazorPageResult(layoutPath, layout)); 495.Returns(new RazorPageResult(layoutPath, layout)); 541.Returns(new RazorPageResult(layoutPath, new[] { "path1", "path2" })) 545.Returns(new RazorPageResult(layoutPath, Enumerable.Empty<string>())) 584.Returns(new RazorPageResult(layoutPath, Enumerable.Empty<string>())) 588.Returns(new RazorPageResult(layoutPath, new[] { "path1", "path2" })) 629.Returns(new RazorPageResult(layoutPath, new[] { "path1", "path2" })) 633.Returns(new RazorPageResult(layoutPath, new[] { "path3", "path4" })) 692.Returns(new RazorPageResult(LayoutPath, layout)) 734.Returns(new RazorPageResult(LayoutPath, layout)); 798.Returns(new RazorPageResult("~/Shared/Layout1.cshtml", nestedLayout)); 801.Returns(new RazorPageResult("~/Shared/Layout2.cshtml", baseLayout)); 861.Returns(new RazorPageResult("NestedLayout", Enumerable.Empty<string>())); 864.Returns(new RazorPageResult("NestedLayout", nestedLayout)); 867.Returns(new RazorPageResult("Layout", Enumerable.Empty<string>())); 870.Returns(new RazorPageResult("Layout", baseLayout)); 930.Returns(new RazorPageResult("~/Shared/Layout1.cshtml", nestedLayout)); 933.Returns(new RazorPageResult("~/Shared/Layout2.cshtml", baseLayout)); 999.Returns(new RazorPageResult("~/Shared/Layout1.cshtml", nestedLayout)); 1002.Returns(new RazorPageResult("~/Shared/Layout2.cshtml", baseLayout)); 1037.Returns(new RazorPageResult(LayoutPath, layout)); 1102.Returns(new RazorPageResult("~/Shared/Layout1.cshtml", layout1)); 1105.Returns(new RazorPageResult("~/Shared/Layout2.cshtml", layout2)); 1176.Returns(new RazorPageResult("~/Shared/Layout1.cshtml", layout1)); 1179.Returns(new RazorPageResult("~/Shared/Layout2.cshtml", layout2)); 1217.Returns(new RazorPageResult("_Layout", Enumerable.Empty<string>())); 1220.Returns(new RazorPageResult("_Layout", layout)); 1265.Returns(new RazorPageResult("_Layout1", Enumerable.Empty<string>())); 1268.Returns(new RazorPageResult("_Layout", layout1)); 1271.Returns(new RazorPageResult("_Layout2", Enumerable.Empty<string>())); 1274.Returns(new RazorPageResult("_Layout2", layout2)); 1341.Returns(new RazorPageResult("~/Shared/Layout1.cshtml", nestedLayout)); 1344.Returns(new RazorPageResult("~/Shared/Layout2.cshtml", baseLayout)); 1399.Returns(new RazorPageResult("layout-1", Enumerable.Empty<string>())); 1402.Returns(new RazorPageResult("layout-1", layout1)); 1454.Returns(new RazorPageResult("layout-1", Enumerable.Empty<string>())); 1457.Returns(new RazorPageResult("layout-1", layout1)); 1535.Returns(new RazorPageResult(layoutPath, layoutPage)); 1760.Returns(new RazorPageResult(LayoutPath, layout));
25 references to RazorPageResult
Microsoft.AspNetCore.Mvc.Razor (9)
IRazorViewEngine.cs (4)
19/// <returns>The <see cref="RazorPageResult"/> of locating the page.</returns> 25RazorPageResult FindPage(ActionContext context, string pageName); 33/// <returns>The <see cref="RazorPageResult"/> of locating the page.</returns> 35RazorPageResult GetPage(string executingFilePath, string pagePath);
RazorPageResult.cs (2)
12/// Initializes a new instance of <see cref="RazorPageResult"/> for a successful discovery. 27/// Initializes a new instance of <see cref="RazorPageResult"/> for an unsuccessful discovery.
RazorView.cs (1)
271var layoutPageResult = _viewEngine.GetPage(executingFilePath, layoutPath);
RazorViewEngine.cs (2)
107public RazorPageResult FindPage(ActionContext context, string pageName) 131public RazorPageResult GetPage(string executingFilePath, string pagePath)
Microsoft.AspNetCore.Mvc.Razor.Test (16)
RazorViewEngineTest.cs (16)
1073var result = viewEngine.FindPage(context, viewName); 1089var result = viewEngine.FindPage(context, viewName); 1103var result = viewEngine.FindPage(context, "View.cshtml"); 1116var result = viewEngine.GetPage("~/Home/View1.cshtml", "View2"); 1186var result = viewEngine.FindPage(context, "layout"); 1245var result = viewEngine.FindPage(context, "layout"); 1269var result = viewEngine.FindPage(context, "layout"); 1305var result = viewEngine.FindPage(context, "details"); 1339var result = viewEngine.FindPage(context, "foo"); 1375var result = viewEngine.FindPage(context, "foo"); 1404var result = viewEngine.FindPage(context, "bar"); 1432var result = viewEngine.GetPage("~/Another/Place.cshtml", pagePath: pageName); 1460var result = viewEngine.GetPage("/Home/Page.cshtml", pageName); 1488var result = viewEngine.GetPage(executingFilePath: null, pagePath: pageName); 1932var result = viewEngine.FindPage(context, "../Shared/_Partial"); 1972var result = viewEngine.FindPage(context, "MyPage");