22 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;
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);