HttpContextFactory Konstruktory
Definicja
Ważne
Niektóre informacje odnoszą się do produktu w wersji wstępnej, który może zostać znacząco zmodyfikowany przed wydaniem. Firma Microsoft nie udziela żadnych gwarancji, jawnych lub domniemanych, w odniesieniu do informacji podanych w tym miejscu.
Przeciążenia
HttpContextFactory(IOptions<FormOptions>) |
Inicjuje nowe wystąpienie klasy HttpContext z przekazanymi opcjami. |
HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>) | |
HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor) |
Inicjuje nowe wystąpienie klasy DefaultHttpContext z przekazanymi opcjami. |
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory) |
Inicjuje nowe wystąpienie klasy DefaultHttpContext z przekazanymi opcjami. |
HttpContextFactory(ObjectPoolProvider, IOptions<FormOptions>, IHttpContextAccessor) | |
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor) |
Inicjuje nowe wystąpienie klasy DefaultHttpContext z przekazanymi opcjami. |
HttpContextFactory(IOptions<FormOptions>)
- Źródło:
- HttpContextFactory.cs
- Źródło:
- HttpContextFactory.cs
Inicjuje nowe wystąpienie klasy HttpContext z przekazanymi opcjami.
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))
Parametry
- formOptions
- IOptions<FormOptions>
Opcje ustawiane podczas tworzenia wystąpienia obiektu kontekstu HTTP.
Dotyczy
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))
Parametry
- poolProvider
- ObjectPoolProvider
- formOptions
- IOptions<FormOptions>
Dotyczy
HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)
- Źródło:
- HttpContextFactory.cs
- Źródło:
- HttpContextFactory.cs
Inicjuje nowe wystąpienie klasy DefaultHttpContext z przekazanymi opcjami.
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)
Parametry
- formOptions
- IOptions<FormOptions>
Opcje ustawiane podczas tworzenia wystąpienia obiektu kontekstu HTTP.
- httpContextAccessor
- IHttpContextAccessor
Obiekt używany do uzyskiwania dostępu do wystąpienia kontekstu HTTP.
Dotyczy
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)
Inicjuje nowe wystąpienie klasy DefaultHttpContext z przekazanymi opcjami.
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)
Parametry
- formOptions
- IOptions<FormOptions>
Opcje ustawiane podczas tworzenia wystąpienia obiektu kontekstu HTTP.
- serviceScopeFactory
- IServiceScopeFactory
Obiekt fabryki służący do tworzenia zakresu usługi dla kontekstu HTTP.
Dotyczy
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)
Parametry
- poolProvider
- ObjectPoolProvider
- formOptions
- IOptions<FormOptions>
- httpContextAccessor
- IHttpContextAccessor
Dotyczy
HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)
Inicjuje nowe wystąpienie klasy DefaultHttpContext z przekazanymi opcjami.
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)
Parametry
- formOptions
- IOptions<FormOptions>
Opcje ustawiane podczas tworzenia wystąpienia obiektu kontekstu HTTP.
- serviceScopeFactory
- IServiceScopeFactory
Obiekt fabryki służący do tworzenia zakresu usługi dla kontekstu HTTP.
- httpContextAccessor
- IHttpContextAccessor
Opcje ustawiane podczas tworzenia wystąpienia domyślnego obiektu kontekstu HTTP.