2 writes to ViewData
Microsoft.AspNetCore.Mvc.RazorPages (2)
Infrastructure\PageActionInvoker.cs (2)
125pageResult.ViewData = pageResult.ViewData ?? _pageContext.ViewData; 295pageResult.ViewData = pageResult.ViewData ?? _pageContext.ViewData;
17 references to ViewData
Microsoft.AspNetCore.Identity.UI (1)
Areas\Identity\Filters\ExternalLoginsPageFilter.cs (1)
22page.ViewData["ManageNav.HasExternalLogins"] = hasExternalLogins;
Microsoft.AspNetCore.Mvc.RazorPages (3)
Infrastructure\PageActionInvoker.cs (2)
125pageResult.ViewData = pageResult.ViewData ?? _pageContext.ViewData; 295pageResult.ViewData = pageResult.ViewData ?? _pageContext.ViewData;
PageResult.cs (1)
23public object Model => ViewData?.Model!;
Microsoft.AspNetCore.Mvc.RazorPages.Test (12)
Infrastructure\PageActionInvokerTest.cs (12)
206Assert.Same(page.ViewContext.ViewData, pageResult.ViewData); 262Assert.Same(page.ViewContext.ViewData, pageResult.ViewData); 322Assert.Same(pageModel.PageContext.ViewData, pageResult.ViewData); 481Assert.IsType<ViewDataDictionary<TestPage>>(pageResult.ViewData); 581Assert.NotNull(pageResult.ViewData); 615Assert.NotNull(pageResult.ViewData); 650Assert.NotNull(pageResult.ViewData); 684Assert.NotNull(pageResult.ViewData); 719Assert.NotNull(pageResult.ViewData); 753Assert.NotNull(pageResult.ViewData); 789Assert.NotNull(pageResult.ViewData); 824Assert.NotNull(pageResult.ViewData);
RazorPagesWebSite (1)
Pages\ViewDataAvailableAfterHandlerExecuted.cshtml.cs (1)
26pageResult.ViewData["Foo"] = "Bar";