HttpContextFactory Constructores
Definición
Importante
Parte de la información hace referencia a la versión preliminar del producto, que puede haberse modificado sustancialmente antes de lanzar la versión definitiva. Microsoft no otorga ninguna garantía, explícita o implícita, con respecto a la información proporcionada aquí.
Sobrecargas
HttpContextFactory(IOptions<FormOptions>) |
Inicializa una nueva instancia de la clase HttpContext con opciones pasadas. |
HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>) | |
HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor) |
Inicializa una nueva instancia de la clase DefaultHttpContext con las opciones pasadas. |
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory) |
Inicializa una nueva instancia de la clase DefaultHttpContext con las opciones pasadas. |
HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>, IHttpContextAccessor) | |
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor) |
Inicializa una nueva instancia de la clase DefaultHttpContext con las opciones pasadas. |
HttpContextFactory(IOptions<FormOptions>)
- Source:
- HttpContextFactory.cs
- Source:
- HttpContextFactory.cs
Inicializa una nueva instancia de la clase HttpContext con opciones pasadas.
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>
Opciones que se van a establecer al crear instancias del objeto de contexto HTTP.
Se aplica 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>
Se aplica a
HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)
- Source:
- HttpContextFactory.cs
- Source:
- HttpContextFactory.cs
Inicializa una nueva instancia de la clase DefaultHttpContext con las opciones pasadas.
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>
Opciones que se van a establecer al crear instancias del objeto de contexto HTTP.
- httpContextAccessor
- IHttpContextAccessor
Objeto que se va a usar para tener acceso a la instancia de contexto HTTP.
Se aplica a
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)
Inicializa una nueva instancia de la clase DefaultHttpContext con las opciones pasadas.
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>
Opciones que se van a establecer al crear instancias del objeto de contexto HTTP.
- serviceScopeFactory
- IServiceScopeFactory
Objeto factory usado para crear el ámbito de servicio para el contexto HTTP.
Se aplica 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
Se aplica a
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)
Inicializa una nueva instancia de la clase DefaultHttpContext con las opciones pasadas.
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>
Opciones que se van a establecer al crear instancias del objeto de contexto HTTP.
- serviceScopeFactory
- IServiceScopeFactory
Objeto factory usado para crear el ámbito de servicio para el contexto HTTP.
- httpContextAccessor
- IHttpContextAccessor
Opciones para establecer al crear instancias del objeto de contexto HTTP predeterminado.