22 references to HttpContext
DynamicSchemes (1)
Pages\Error.cshtml.cs (1)
21
RequestId = Activity.Current?.Id ??
HttpContext
.TraceIdentifier;
HostedBlazorWebassemblyApp.Server (1)
Pages\Error.cshtml.cs (1)
32
RequestId = Activity.Current?.Id ??
HttpContext
.TraceIdentifier;
Microsoft.AspNetCore.Identity.UI (10)
Areas\Identity\Pages\V4\Account\Login.cshtml.cs (1)
113
await
HttpContext
.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V4\Account\Manage\ExternalLogins.cshtml.cs (3)
100
passwordHash = await userPasswordStore.GetPasswordHashAsync(user,
HttpContext
.RequestAborted);
130
await
HttpContext
.SignOutAsync(IdentityConstants.ExternalScheme);
161
await
HttpContext
.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V4\Error.cshtml.cs (1)
37
RequestId = Activity.Current?.Id ??
HttpContext
.TraceIdentifier;
Areas\Identity\Pages\V5\Account\Login.cshtml.cs (1)
113
await
HttpContext
.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Account\Manage\ExternalLogins.cshtml.cs (3)
100
passwordHash = await userPasswordStore.GetPasswordHashAsync(user,
HttpContext
.RequestAborted);
130
await
HttpContext
.SignOutAsync(IdentityConstants.ExternalScheme);
161
await
HttpContext
.SignOutAsync(IdentityConstants.ExternalScheme);
Areas\Identity\Pages\V5\Error.cshtml.cs (1)
37
RequestId = Activity.Current?.Id ??
HttpContext
.TraceIdentifier;
Microsoft.AspNetCore.Mvc.RazorPages (9)
PageModel.cs (9)
66
public HttpRequest Request =>
HttpContext
?.Request!;
71
public HttpResponse Response =>
HttpContext
?.Response!;
86
public ClaimsPrincipal User =>
HttpContext
?.User!;
97
var factory =
HttpContext
?.RequestServices?.GetRequiredService<ITempDataDictionaryFactory>();
98
_tempData = factory?.GetTempData(
HttpContext
);
120
var 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)
1744
Assert.Same(httpContext, pageModel.
HttpContext
);