7 references to HttpContext
Microsoft.AspNetCore.Mvc.RazorPages (5)
PageBase.cs (5)
47public HttpRequest Request => HttpContext?.Request!; 52public 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)
457page.HttpContext.Request.Method = "Post";
PageTest.cs (1)
44Assert.Same(httpContext, page.HttpContext);