Dela via


HttpContextFactory Constructors

Definition

Overloads

HttpContextFactory(IOptions<FormOptions>)

Initializes a new instance of the HttpContext class with options passed in.

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

Initializes a new instance of the DefaultHttpContext class with options passed in.

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)

Initializes a new instance of the DefaultHttpContext class with options passed in.

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

Initializes a new instance of the DefaultHttpContext class with options passed in.

HttpContextFactory(IOptions<FormOptions>)

Source:
HttpContextFactory.cs
Source:
HttpContextFactory.cs

Initializes a new instance of the HttpContext class with options passed in.

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

Parameters

formOptions
IOptions<FormOptions>

Options to set when instantianting the HTTP context object.

Applies to

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

Parameters

poolProvider
ObjectPoolProvider
formOptions
IOptions<FormOptions>

Applies to

HttpContextFactory(IOptions<FormOptions>, IHttpContextAccessor)

Source:
HttpContextFactory.cs
Source:
HttpContextFactory.cs

Initializes a new instance of the DefaultHttpContext class with options passed in.

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)

Parameters

formOptions
IOptions<FormOptions>

Options to set when instantianting the HTTP context object.

httpContextAccessor
IHttpContextAccessor

Object to be used to access the HTTP context instance.

Applies to

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory)

Initializes a new instance of the DefaultHttpContext class with options passed in.

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)

Parameters

formOptions
IOptions<FormOptions>

Options to set when instantianting the HTTP context object.

serviceScopeFactory
IServiceScopeFactory

Factory object used to create the service scope for the HTTP context.

Applies to

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)

Parameters

poolProvider
ObjectPoolProvider
formOptions
IOptions<FormOptions>
httpContextAccessor
IHttpContextAccessor

Applies to

HttpContextFactory(IOptions<FormOptions>, IServiceScopeFactory, IHttpContextAccessor)

Initializes a new instance of the DefaultHttpContext class with options passed in.

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)

Parameters

formOptions
IOptions<FormOptions>

Options to set when instantianting the HTTP context object.

serviceScopeFactory
IServiceScopeFactory

Factory object used to create the service scope for the HTTP context.

httpContextAccessor
IHttpContextAccessor

Options to set when instantianting the Default HTTP context object.

Applies to