18 writes to PageContext
Microsoft.AspNetCore.Mvc.RazorPages (1)
Infrastructure\DefaultPageFactoryProvider.cs (1)
62
page.
PageContext
= pageContext;
Microsoft.AspNetCore.Mvc.RazorPages.Test (17)
Infrastructure\PageActionInvokerTest.cs (1)
1524
instance.
PageContext
= context;
Infrastructure\PageBinderFactoryTest.cs (11)
222
PageContext
= GetPageContext(),
282
PageContext
= GetPageContext()
332
PageContext
= GetPageContext()
395
PageContext
= GetPageContext(method)
454
PageContext
= GetPageContext()
504
PageContext
= GetPageContext()
556
PageContext
= GetPageContext()
599
PageContext
= GetPageContext()
642
PageContext
= GetPageContext()
685
PageContext
= GetPageContext()
730
PageContext
= pageContext,
PageModelTest.cs (1)
1734
PageContext
= pageContext,
PageTest.cs (4)
37
PageContext
= pageContext,
1438
PageContext
= new PageContext
1464
PageContext
= new PageContext
1839
PageContext
= new PageContext
37 references to PageContext
Microsoft.AspNetCore.Mvc.RazorPages (19)
PageBase.cs (19)
42
public HttpContext HttpContext =>
PageContext
?.HttpContext!;
57
public RouteData RouteData =>
PageContext
.RouteData;
62
public ModelStateDictionary ModelState =>
PageContext
?.ModelState!;
1302
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
1334
PageContext
,
1361
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
1370
PageContext
,
1397
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
1406
PageContext
,
1440
PageContext
,
1473
PageContext
,
1498
var (success, valueProvider) = await CompositeValueProvider.TryCreateAsync(
PageContext
,
PageContext
.ValueProviderFactories);
1508
PageContext
,
1542
PageContext
,
1577
PageContext
,
Microsoft.AspNetCore.Mvc.RazorPages.Test (17)
Infrastructure\DefaultPageFactoryProviderTest.cs (1)
62
Assert.Same(pageContext, testPage.
PageContext
);
Infrastructure\PageActionInvokerTest.cs (2)
256
Assert.IsType<ViewDataDictionary<PocoModel>>(page.
PageContext
.ViewData);
257
Assert.Null(page.
PageContext
.ViewData.Model);
Infrastructure\PageBinderFactoryTest.cs (13)
226
await factory(page.
PageContext
, page);
288
await factory(page.
PageContext
, model);
339
await factory(page.
PageContext
, model);
401
await factory(page.
PageContext
, model);
462
await factory(page.
PageContext
, model);
510
await factory(page.
PageContext
, model);
562
await factory(page.
PageContext
, model);
565
var modelState = page.
PageContext
.ModelState;
606
await factory(page.
PageContext
, arguments);
649
await factory(page.
PageContext
, arguments);
692
await factory(page.
PageContext
, arguments);
695
var modelState = page.
PageContext
.ModelState;
743
await factory(page.
PageContext
, arguments);
PageTest.cs (1)
42
Assert.Same(pageContext, page.
PageContext
);
RazorBuildWebSite.Views (1)
Pages\Rzc\Page.cs (1)
37
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Page_Model> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Page_Model>)
PageContext
?.ViewData;