1 write to PageName
Microsoft.AspNetCore.Mvc.Razor (1)
ViewLocationExpanderContext.cs (1)
35PageName = pageName;
9 references to PageName
Microsoft.AspNetCore.Mvc.Razor (3)
RazorViewEngine.cs (3)
258expanderContext.PageName, 321!string.IsNullOrEmpty(context.PageName)) 325else if (!string.IsNullOrEmpty(context.PageName))
Microsoft.AspNetCore.Mvc.Razor.Test (2)
RazorViewEngineTest.cs (2)
1846Assert.Null(c.PageName); 1881Assert.Equal("MyPage", c.PageName);
Microsoft.AspNetCore.Mvc.RazorPages (4)
Infrastructure\PageViewLocationExpander.cs (4)
16if ((context.ActionContext.ActionDescriptor is PageActionDescriptor) && !string.IsNullOrEmpty(context.PageName)) 56var end = context.PageName.Length; 58while (end > 0 && (end = context.PageName.LastIndexOf('/', end - 1)) != -1) 61yield return location.Replace("/{1}/", context.PageName.Substring(0, end + 1));