Share via


DefaultHttpContext Constructors

Definition

Overloads

DefaultHttpContext()

Initializes a new instance of the DefaultHttpContext class.

DefaultHttpContext(IFeatureCollection)

Initializes a new instance of the DefaultHttpContext class with provided features.

DefaultHttpContext()

Source:
DefaultHttpContext.cs
Source:
DefaultHttpContext.cs
Source:
DefaultHttpContext.cs

Initializes a new instance of the DefaultHttpContext class.

public:
 DefaultHttpContext();
public DefaultHttpContext ();
Public Sub New ()

Applies to

DefaultHttpContext(IFeatureCollection)

Source:
DefaultHttpContext.cs
Source:
DefaultHttpContext.cs
Source:
DefaultHttpContext.cs

Initializes a new instance of the DefaultHttpContext class with provided features.

public:
 DefaultHttpContext(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public DefaultHttpContext (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
new Microsoft.AspNetCore.Http.DefaultHttpContext : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.AspNetCore.Http.DefaultHttpContext
Public Sub New (features As IFeatureCollection)

Parameters

features
IFeatureCollection

Initial set of features for the DefaultHttpContext.

Applies to