DefaultHttpContextFactory 类

定义

用于创建 HttpContext 实例的工厂。

public ref class DefaultHttpContextFactory : Microsoft::AspNetCore::Http::IHttpContextFactory
public class DefaultHttpContextFactory : Microsoft.AspNetCore.Http.IHttpContextFactory
type DefaultHttpContextFactory = class
    interface IHttpContextFactory
Public Class DefaultHttpContextFactory
Implements IHttpContextFactory
继承
DefaultHttpContextFactory
实现

构造函数

DefaultHttpContextFactory(IServiceProvider)

创建用于创建 HttpContext 实例的工厂。

方法

Create(IFeatureCollection)

创建给定 HttpContextfeatureCollection实例。

Dispose(HttpContext)

清除当前 HttpContext

适用于