IHttpContextFactory.Create(IFeatureCollection) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Creates an HttpContext instance for the specified set of HTTP features.
public:
Microsoft::AspNetCore::Http::HttpContext ^ Create(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ featureCollection);
public Microsoft.AspNetCore.Http.HttpContext Create (Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection);
abstract member Create : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> Microsoft.AspNetCore.Http.HttpContext
Public Function Create (featureCollection As IFeatureCollection) As HttpContext
Parameters
- featureCollection
- IFeatureCollection
The collection of HTTP features to set on the created instance.
Returns
The HttpContext instance.