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