HttpContextFactory Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
HttpContextFactory(IOptions<FormOptions>) |
Inizializza una nuova istanza della classe HttpContext con le opzioni passate. |
HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>) | |
HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor) |
Inizializza una nuova istanza della classe DefaultHttpContext con le opzioni passate. |
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory) |
Inizializza una nuova istanza della classe DefaultHttpContext con le opzioni passate. |
HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>, IHttpContextAccessor) | |
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor) |
Inizializza una nuova istanza della classe DefaultHttpContext con le opzioni passate. |
HttpContextFactory(IOptions<FormOptions>)
- Origine:
- HttpContextFactory.cs
- Origine:
- HttpContextFactory.cs
Inizializza una nuova istanza della classe HttpContext con le opzioni passate.
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))
Parametri
- formOptions
- IOptions<FormOptions>
Opzioni da impostare quando si crea un'istanza dell'oggetto contesto HTTP.
Si applica 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))
Parametri
- poolProvider
- ObjectPoolProvider
- formOptions
- IOptions<FormOptions>
Si applica a
HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)
- Origine:
- HttpContextFactory.cs
- Origine:
- HttpContextFactory.cs
Inizializza una nuova istanza della classe DefaultHttpContext con le opzioni passate.
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)
Parametri
- formOptions
- IOptions<FormOptions>
Opzioni da impostare quando si crea un'istanza dell'oggetto contesto HTTP.
- httpContextAccessor
- IHttpContextAccessor
Oggetto da utilizzare per accedere all'istanza del contesto HTTP.
Si applica a
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)
Inizializza una nuova istanza della classe DefaultHttpContext con le opzioni passate.
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)
Parametri
- formOptions
- IOptions<FormOptions>
Opzioni da impostare quando si crea un'istanza dell'oggetto contesto HTTP.
- serviceScopeFactory
- IServiceScopeFactory
Oggetto Factory usato per creare l'ambito del servizio per il contesto HTTP.
Si applica 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)
Parametri
- poolProvider
- ObjectPoolProvider
- formOptions
- IOptions<FormOptions>
- httpContextAccessor
- IHttpContextAccessor
Si applica a
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)
Inizializza una nuova istanza della classe DefaultHttpContext con le opzioni passate.
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)
Parametri
- formOptions
- IOptions<FormOptions>
Opzioni da impostare quando si crea un'istanza dell'oggetto contesto HTTP.
- serviceScopeFactory
- IServiceScopeFactory
Oggetto Factory usato per creare l'ambito del servizio per il contesto HTTP.
- httpContextAccessor
- IHttpContextAccessor
Opzioni da impostare quando si crea un'istanza dell'oggetto contesto HTTP predefinito.