共用方式為


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。

適用於