31 references to HttpContext
DynamicSchemes (1)
Pages\Error.cshtml.cs (1)
21RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
HostedBlazorWebassemblyApp.Server (1)
Pages\Error.cshtml.cs (1)
32RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Identity.DefaultUI.WebSite (3)
Pages\Contoso\Login.cshtml.cs (1)
67await HttpContext.SignInAsync(Options.SignInScheme, principal, properties);
Pages\Error.cshtml.cs (1)
19RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Pages\Privacy.cshtml.cs (1)
13HttpContext.Features.Get<ITrackingConsentFeature>().GrantConsent();
Identity.ExternalClaims (4)
Pages\Account\Login.cshtml.cs (1)
61await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Pages\Account\Manage\ExternalLogins.cshtml.cs (2)
76await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 105await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Pages\Error.cshtml.cs (1)
21RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Microsoft.AspNetCore.Identity.UI (10)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
113await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (3)
100passwordHash = await userPasswordStore.GetPasswordHashAsync(user, HttpContext.RequestAborted); 130await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 161await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
37RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
113await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (3)
100passwordHash = await userPasswordStore.GetPasswordHashAsync(user, HttpContext.RequestAborted); 130await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme); 161await HttpContext.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
37RequestId = Activity.Current?.Id ?? HttpContext.TraceIdentifier;
Microsoft.AspNetCore.Mvc.RazorPages (9)
PageModel.cs (9)
66public HttpRequest Request => HttpContext?.Request!; 71public HttpResponse Response => HttpContext?.Response!; 86public ClaimsPrincipal User => HttpContext?.User!; 97var factory = HttpContext?.RequestServices?.GetRequiredService<ITempDataDictionaryFactory>(); 98_tempData = factory?.GetTempData(HttpContext); 120var factory = HttpContext?.RequestServices?.GetRequiredService<IUrlHelperFactory>(); 141_metadataProvider ??= HttpContext?.RequestServices?.GetRequiredService<IModelMetadataProvider>(); 158_objectValidator = HttpContext?.RequestServices?.GetRequiredService<IObjectModelValidator>(); 171_modelBinderFactory = HttpContext?.RequestServices?.GetRequiredService<IModelBinderFactory>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (1)
PageModelTest.cs (1)
1744Assert.Same(httpContext, pageModel.HttpContext);
Mvc.RoutingWebSite (2)
Pages\LGAnotherPage.cshtml.cs (1)
20return Content(_linkGenerator.GetPathByAction(HttpContext, action: nameof(LG2Controller.SomeAction), controller: "LG2"));
Pages\LGPage.cshtml.cs (1)
20return Content(_linkGenerator.GetPathByPage(HttpContext, "./LGAnotherPage"));