Early Preview
This is currently very much a preview. Please feel free to try things out,
but don't be upset if anything is not yet working. Feedback is welcome over on our
GitHub Dicussions page.
interface Microsoft.​AspNetCore.​Http.​IHttpContextFactory
Assembly: Microsoft.AspNetCore.Http.Abstractions
Provides methods to create and dispose of <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> instances.
Methods
Create​(IFeatureCollection featureCollection)
Creates an <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> instance for the specified set of HTTP features.
Returns The <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> instance.
featureCollection
The collection of HTTP features to set on the created instance.
void
Dispose​(HttpContext httpContext)
Releases resources held by the <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> .
httpContext
The <see cref="T:Microsoft.AspNetCore.Http.HttpContext" /> to dispose.