HttpContextFactory 类

定义

注意

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

表示用于创建 HTTP 上下文对象的方法。

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
继承
HttpContextFactory
属性
实现

构造函数

HttpContextFactory(IOptions<FormOptions>)
已过时.

使用传入的选项初始化 HttpContext 类的新实例。

HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)
已过时.

使用传入的选项初始化 DefaultHttpContext 类的新实例。

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)
已过时.

使用传入的选项初始化 DefaultHttpContext 类的新实例。

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)
已过时.

使用传入的选项初始化 DefaultHttpContext 类的新实例。

HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>)
已过时.

表示用于创建 HTTP 上下文对象的方法。

HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>, IHttpContextAccessor)
已过时.

表示用于创建 HTTP 上下文对象的方法。

方法

Create(IFeatureCollection)
已过时.

使用传入的选项初始化 DefaultHttpContext 类的新实例。

Dispose(HttpContext)
已过时.

对于垃圾回收,将 HTTP 上下文对象设置为 null。

适用于