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
82 references to PageContext
DynamicSchemes (4)
artifacts\obj\DynamicSchemes\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\About_cshtml.g.cs (1)
85
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AboutModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AboutModel>)
PageContext
?.ViewData!;
artifacts\obj\DynamicSchemes\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\Contact_cshtml.g.cs (1)
98
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ContactModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ContactModel>)
PageContext
?.ViewData!;
artifacts\obj\DynamicSchemes\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\Error_cshtml.g.cs (1)
102
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ErrorModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ErrorModel>)
PageContext
?.ViewData!;
artifacts\obj\DynamicSchemes\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\Index_cshtml.g.cs (1)
278
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<IndexModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<IndexModel>)
PageContext
?.ViewData!;
HostedBlazorWebassemblyApp.Server (2)
artifacts\obj\HostedBlazorWebassemblyApp.Server\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\_Host_cshtml.g.cs (1)
172
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages__Host> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages__Host>)
PageContext
?.ViewData!;
artifacts\obj\HostedBlazorWebassemblyApp.Server\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\Error_cshtml.g.cs (1)
176
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<HostedBlazorWebassemblyApp.Server.Pages.ErrorModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<HostedBlazorWebassemblyApp.Server.Pages.ErrorModel>)
PageContext
?.ViewData!;
Microsoft.AspNetCore.Identity.UI (31)
AccessDenied_cshtml.g.cs (1)
75
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AccessDeniedModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AccessDeniedModel>)
PageContext
?.ViewData!;
ChangePassword_cshtml.g.cs (1)
424
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ChangePasswordModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ChangePasswordModel>)
PageContext
?.ViewData!;
ConfirmEmail_cshtml.g.cs (1)
122
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ConfirmEmailModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ConfirmEmailModel>)
PageContext
?.ViewData!;
ConfirmEmailChange_cshtml.g.cs (1)
122
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ConfirmEmailChangeModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ConfirmEmailChangeModel>)
PageContext
?.ViewData!;
DeletePersonalData_cshtml.g.cs (1)
272
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<DeletePersonalDataModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<DeletePersonalDataModel>)
PageContext
?.ViewData!;
Disable2fa_cshtml.g.cs (1)
178
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Disable2faModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Disable2faModel>)
PageContext
?.ViewData!;
DownloadPersonalData_cshtml.g.cs (1)
123
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<DownloadPersonalDataModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<DownloadPersonalDataModel>)
PageContext
?.ViewData!;
Email_cshtml.g.cs (1)
430
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<EmailModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<EmailModel>)
PageContext
?.ViewData!;
EnableAuthenticator_cshtml.g.cs (1)
325
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<EnableAuthenticatorModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<EnableAuthenticatorModel>)
PageContext
?.ViewData!;
Error_cshtml.g.cs (1)
96
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ErrorModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ErrorModel>)
PageContext
?.ViewData!;
ExternalLogin_cshtml.g.cs (1)
280
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ExternalLoginModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ExternalLoginModel>)
PageContext
?.ViewData!;
ExternalLogins_cshtml.g.cs (1)
432
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ExternalLoginsModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ExternalLoginsModel>)
PageContext
?.ViewData!;
ForgotPassword_cshtml.g.cs (1)
242
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ForgotPasswordModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ForgotPasswordModel>)
PageContext
?.ViewData!;
ForgotPasswordConfirmation_cshtml.g.cs (1)
75
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ForgotPasswordConfirmation> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ForgotPasswordConfirmation>)
PageContext
?.ViewData!;
GenerateRecoveryCodes_cshtml.g.cs (1)
181
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<GenerateRecoveryCodesModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<GenerateRecoveryCodesModel>)
PageContext
?.ViewData!;
Index_cshtml.g.cs (1)
323
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<IndexModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<IndexModel>)
PageContext
?.ViewData!;
Lockout_cshtml.g.cs (1)
75
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LockoutModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LockoutModel>)
PageContext
?.ViewData!;
Login_cshtml.g.cs (1)
594
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LoginModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LoginModel>)
PageContext
?.ViewData!;
LoginWith2fa_cshtml.g.cs (1)
377
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LoginWith2faModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LoginWith2faModel>)
PageContext
?.ViewData!;
LoginWithRecoveryCode_cshtml.g.cs (1)
254
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LoginWithRecoveryCodeModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LoginWithRecoveryCodeModel>)
PageContext
?.ViewData!;
Logout_cshtml.g.cs (1)
173
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LogoutModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<LogoutModel>)
PageContext
?.ViewData!;
PersonalData_cshtml.g.cs (1)
183
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PersonalDataModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PersonalDataModel>)
PageContext
?.ViewData!;
Register_cshtml.g.cs (1)
545
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<RegisterModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<RegisterModel>)
PageContext
?.ViewData!;
RegisterConfirmation_cshtml.g.cs (1)
118
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<RegisterConfirmationModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<RegisterConfirmationModel>)
PageContext
?.ViewData!;
ResendEmailConfirmation_cshtml.g.cs (1)
246
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResendEmailConfirmationModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResendEmailConfirmationModel>)
PageContext
?.ViewData!;
ResetAuthenticator_cshtml.g.cs (1)
166
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResetAuthenticatorModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResetAuthenticatorModel>)
PageContext
?.ViewData!;
ResetPassword_cshtml.g.cs (1)
415
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResetPasswordModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResetPasswordModel>)
PageContext
?.ViewData!;
ResetPasswordConfirmation_cshtml.g.cs (1)
113
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResetPasswordConfirmationModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ResetPasswordConfirmationModel>)
PageContext
?.ViewData!;
SetPassword_cshtml.g.cs (1)
337
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<SetPasswordModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<SetPasswordModel>)
PageContext
?.ViewData!;
ShowRecoveryCodes_cshtml.g.cs (1)
181
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ShowRecoveryCodesModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<ShowRecoveryCodesModel>)
PageContext
?.ViewData!;
TwoFactorAuthentication_cshtml.g.cs (1)
466
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<TwoFactorAuthenticationModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<TwoFactorAuthenticationModel>)
PageContext
?.ViewData!;
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
);
MvcSandbox (1)
artifacts\obj\MvcSandbox\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\PagesHome_cshtml.g.cs (1)
72
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PagesHome> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<PagesHome>)
PageContext
?.ViewData!;
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;
RazorPagesClassLibrary (2)
artifacts\obj\RazorPagesClassLibrary\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\ClassLibraryPages\Overriden_cshtml.g.cs (1)
57
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages_ClassLibraryPages_Overriden> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages_ClassLibraryPages_Overriden>)
PageContext
?.ViewData!;
artifacts\obj\RazorPagesClassLibrary\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\ClassLibraryPages\Served_cshtml.g.cs (1)
50
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages_ClassLibraryPages_Served> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages_ClassLibraryPages_Served>)
PageContext
?.ViewData!;
SecurityWebSite (5)
artifacts\obj\SecurityWebSite\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\AllowAnonymousPageViaConvention_cshtml.g.cs (1)
49
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AllowAnonymousPageViaConvention> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AllowAnonymousPageViaConvention>)
PageContext
?.ViewData!;
artifacts\obj\SecurityWebSite\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\AllowAnonymousPageViaModel_cshtml.g.cs (1)
49
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AllowAnonymousPageViaModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AllowAnonymousPageViaModel>)
PageContext
?.ViewData!;
artifacts\obj\SecurityWebSite\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\AuthorizePageViaConvention_cshtml.g.cs (1)
49
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AuthorizePageViaConvention> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AuthorizePageViaConvention>)
PageContext
?.ViewData!;
artifacts\obj\SecurityWebSite\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\AuthorizePageViaModel_cshtml.g.cs (1)
49
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AuthorizePageViaModel> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<AuthorizePageViaModel>)
PageContext
?.ViewData!;
artifacts\obj\SecurityWebSite\Release\net11.0\Microsoft.CodeAnalysis.Razor.Compiler\Microsoft.NET.Sdk.Razor.SourceGenerators.RazorSourceGenerator\Pages\PagesHome_cshtml.g.cs (1)
50
public global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages_PagesHome> ViewData => (global::Microsoft.AspNetCore.Mvc.ViewFeatures.ViewDataDictionary<Pages_PagesHome>)
PageContext
?.ViewData!;