7 references to HttpContext
Microsoft.AspNetCore.Mvc.RazorPages (5)
PageBase.cs (5)
47
public HttpRequest Request =>
HttpContext
?.Request!;
52
public HttpResponse Response =>
HttpContext
?.Response!;
72
_metadataProvider ??=
HttpContext
?.RequestServices?.GetRequiredService<IModelMetadataProvider>();
84
_objectValidator =
HttpContext
?.RequestServices?.GetRequiredService<IObjectModelValidator>();
97
_modelBinderFactory =
HttpContext
?.RequestServices?.GetRequiredService<IModelBinderFactory>();
Microsoft.AspNetCore.Mvc.RazorPages.Test (2)
Infrastructure\PageBinderFactoryTest.cs (1)
457
page.
HttpContext
.Request.Method = "Post";
PageTest.cs (1)
44
Assert.Same(httpContext, page.
HttpContext
);