HttpContextFactory Class¶
- Namespace
Microsoft.AspNetCore.Http
- Assemblies
- Microsoft.AspNetCore.Http
Syntax¶
public class HttpContextFactory : IHttpContextFactory
-
class
Microsoft.AspNetCore.Http.
HttpContextFactory
Constructors¶
-
HttpContextFactory
(Microsoft.Extensions.ObjectPool.ObjectPoolProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions>)¶ public HttpContextFactory(ObjectPoolProvider poolProvider, IOptions<FormOptions> formOptions)
-
HttpContextFactory
(Microsoft.Extensions.ObjectPool.ObjectPoolProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions>, Microsoft.AspNetCore.Http.IHttpContextAccessor) public HttpContextFactory(ObjectPoolProvider poolProvider, IOptions<FormOptions> formOptions, IHttpContextAccessor httpContextAccessor)
-
Methods¶
-
Create
(Microsoft.AspNetCore.Http.Features.IFeatureCollection)¶ Return type: Microsoft.AspNetCore.Http.HttpContext public HttpContext Create(IFeatureCollection featureCollection)
-
Dispose
(Microsoft.AspNetCore.Http.HttpContext)¶ public void Dispose(HttpContext httpContext)
-