Share via


HttpContextFactory Class

Definition

Caution

This is obsolete and will be removed in a future version. Use DefaultHttpContextFactory instead.

Represents methods used to create an HTTP context object.

public ref class HttpContextFactory : Microsoft::AspNetCore::Http::IHttpContextFactory
public class HttpContextFactory : Microsoft.AspNetCore.Http.IHttpContextFactory
[System.Obsolete("This is obsolete and will be removed in a future version. Use DefaultHttpContextFactory instead.")]
public class HttpContextFactory : Microsoft.AspNetCore.Http.IHttpContextFactory
type HttpContextFactory = class
    interface IHttpContextFactory
[<System.Obsolete("This is obsolete and will be removed in a future version. Use DefaultHttpContextFactory instead.")>]
type HttpContextFactory = class
    interface IHttpContextFactory
Public Class HttpContextFactory
Implements IHttpContextFactory
Inheritance
HttpContextFactory
Attributes
Implements

Constructors

HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)

Initializes a new instance of the DefaultHttpContext class with options passed in.

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)

Initializes a new instance of the DefaultHttpContext class with options passed in.

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)

Initializes a new instance of the DefaultHttpContext class with options passed in.

HttpContextFactory(IOptions<FormOptions>)

Initializes a new instance of the HttpContext class with options passed in.

HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>, IHttpContextAccessor)
HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>)

Methods

Create(IFeatureCollection)

Initializes a new instance of the DefaultHttpContext class with options passed in.

Dispose(HttpContext)

Sets the HTTP context object to null for garbage collection.

Applies to