Partilhar via


HttpContextFactory Construtores

Definição

Sobrecargas

HttpContextFactory(IOptions<FormOptions>)

Inicializa uma nova instância da classe HttpContext com opções passadas.

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

Inicializa uma nova instância da classe DefaultHttpContext com opções passadas.

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)

Inicializa uma nova instância da classe DefaultHttpContext com opções passadas.

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

Inicializa uma nova instância da classe DefaultHttpContext com opções passadas.

HttpContextFactory(IOptions<FormOptions>)

Origem:
HttpContextFactory.cs
Origem:
HttpContextFactory.cs

Inicializa uma nova instância da classe HttpContext com opções passadas.

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))

Parâmetros

formOptions
IOptions<FormOptions>

Opções a serem definidas ao instanciar o objeto de contexto HTTP.

Aplica-se a

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))

Parâmetros

poolProvider
ObjectPoolProvider
formOptions
IOptions<FormOptions>

Aplica-se a

HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)

Origem:
HttpContextFactory.cs
Origem:
HttpContextFactory.cs

Inicializa uma nova instância da classe DefaultHttpContext com opções passadas.

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)

Parâmetros

formOptions
IOptions<FormOptions>

Opções a serem definidas ao instanciar o objeto de contexto HTTP.

httpContextAccessor
IHttpContextAccessor

Objeto a ser usado para acessar a instância de contexto HTTP.

Aplica-se a

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)

Inicializa uma nova instância da classe DefaultHttpContext com opções passadas.

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)

Parâmetros

formOptions
IOptions<FormOptions>

Opções a serem definidas ao instanciar o objeto de contexto HTTP.

serviceScopeFactory
IServiceScopeFactory

Objeto factory usado para criar o escopo do serviço para o contexto HTTP.

Aplica-se a

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)

Parâmetros

poolProvider
ObjectPoolProvider
formOptions
IOptions<FormOptions>
httpContextAccessor
IHttpContextAccessor

Aplica-se a

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)

Inicializa uma nova instância da classe DefaultHttpContext com opções passadas.

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)

Parâmetros

formOptions
IOptions<FormOptions>

Opções a serem definidas ao instanciar o objeto de contexto HTTP.

serviceScopeFactory
IServiceScopeFactory

Objeto factory usado para criar o escopo do serviço para o contexto HTTP.

httpContextAccessor
IHttpContextAccessor

Opções a serem definidas ao instanciar o objeto de contexto HTTP padrão.

Aplica-se a