HttpContextFactory 构造函数

定义

重载

HttpContextFactory(IOptions<FormOptions>)

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

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

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

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)

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

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

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

HttpContextFactory(IOptions<FormOptions>)

Source:
HttpContextFactory.cs
Source:
HttpContextFactory.cs

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

public:
 HttpContextFactory(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Http::Features::FormOptions ^> ^ formOptions);
public HttpContextFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions);
new Microsoft.AspNetCore.Http.HttpContextFactory : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> -> Microsoft.AspNetCore.Http.HttpContextFactory
Public Sub New (formOptions As IOptions(Of FormOptions))

参数

formOptions
IOptions<FormOptions>

实例化 HTTP 上下文对象时要设置的选项。

适用于

HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>)

public:
 HttpContextFactory(Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ poolProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Http::Features::FormOptions ^> ^ formOptions);
public HttpContextFactory (Microsoft.Extensions.ObjectPool.ObjectPoolProvider poolProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions);
new Microsoft.AspNetCore.Http.HttpContextFactory : Microsoft.Extensions.ObjectPool.ObjectPoolProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> -> Microsoft.AspNetCore.Http.HttpContextFactory
Public Sub New (poolProvider As ObjectPoolProvider, formOptions As IOptions(Of FormOptions))

参数

poolProvider
ObjectPoolProvider
formOptions
IOptions<FormOptions>

适用于

HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)

Source:
HttpContextFactory.cs
Source:
HttpContextFactory.cs

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

public:
 HttpContextFactory(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Http::Features::FormOptions ^> ^ formOptions, Microsoft::AspNetCore::Http::IHttpContextAccessor ^ httpContextAccessor);
public HttpContextFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);
public HttpContextFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions, Microsoft.AspNetCore.Http.IHttpContextAccessor? httpContextAccessor);
new Microsoft.AspNetCore.Http.HttpContextFactory : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> * Microsoft.AspNetCore.Http.IHttpContextAccessor -> Microsoft.AspNetCore.Http.HttpContextFactory
Public Sub New (formOptions As IOptions(Of FormOptions), httpContextAccessor As IHttpContextAccessor)

参数

formOptions
IOptions<FormOptions>

实例化 HTTP 上下文对象时要设置的选项。

httpContextAccessor
IHttpContextAccessor

用于访问 HTTP 上下文实例的对象。

适用于

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)

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

public:
 HttpContextFactory(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Http::Features::FormOptions ^> ^ formOptions, Microsoft::Extensions::DependencyInjection::IServiceScopeFactory ^ serviceScopeFactory);
public HttpContextFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory);
new Microsoft.AspNetCore.Http.HttpContextFactory : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> * Microsoft.Extensions.DependencyInjection.IServiceScopeFactory -> Microsoft.AspNetCore.Http.HttpContextFactory
Public Sub New (formOptions As IOptions(Of FormOptions), serviceScopeFactory As IServiceScopeFactory)

参数

formOptions
IOptions<FormOptions>

实例化 HTTP 上下文对象时要设置的选项。

serviceScopeFactory
IServiceScopeFactory

用于为 HTTP 上下文创建服务范围的工厂对象。

适用于

HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>, IHttpContextAccessor)

public:
 HttpContextFactory(Microsoft::Extensions::ObjectPool::ObjectPoolProvider ^ poolProvider, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Http::Features::FormOptions ^> ^ formOptions, Microsoft::AspNetCore::Http::IHttpContextAccessor ^ httpContextAccessor);
public HttpContextFactory (Microsoft.Extensions.ObjectPool.ObjectPoolProvider poolProvider, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);
new Microsoft.AspNetCore.Http.HttpContextFactory : Microsoft.Extensions.ObjectPool.ObjectPoolProvider * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> * Microsoft.AspNetCore.Http.IHttpContextAccessor -> Microsoft.AspNetCore.Http.HttpContextFactory
Public Sub New (poolProvider As ObjectPoolProvider, formOptions As IOptions(Of FormOptions), httpContextAccessor As IHttpContextAccessor)

参数

poolProvider
ObjectPoolProvider
formOptions
IOptions<FormOptions>
httpContextAccessor
IHttpContextAccessor

适用于

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)

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

public:
 HttpContextFactory(Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::Http::Features::FormOptions ^> ^ formOptions, Microsoft::Extensions::DependencyInjection::IServiceScopeFactory ^ serviceScopeFactory, Microsoft::AspNetCore::Http::IHttpContextAccessor ^ httpContextAccessor);
public HttpContextFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory, Microsoft.AspNetCore.Http.IHttpContextAccessor httpContextAccessor);
public HttpContextFactory (Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> formOptions, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory, Microsoft.AspNetCore.Http.IHttpContextAccessor? httpContextAccessor);
new Microsoft.AspNetCore.Http.HttpContextFactory : Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.Http.Features.FormOptions> * Microsoft.Extensions.DependencyInjection.IServiceScopeFactory * Microsoft.AspNetCore.Http.IHttpContextAccessor -> Microsoft.AspNetCore.Http.HttpContextFactory
Public Sub New (formOptions As IOptions(Of FormOptions), serviceScopeFactory As IServiceScopeFactory, httpContextAccessor As IHttpContextAccessor)

参数

formOptions
IOptions<FormOptions>

实例化 HTTP 上下文对象时要设置的选项。

serviceScopeFactory
IServiceScopeFactory

用于为 HTTP 上下文创建服务范围的工厂对象。

httpContextAccessor
IHttpContextAccessor

实例化默认 HTTP 上下文对象时要设置的选项。

适用于