Share via


IHttpContextFactory.Create(IFeatureCollection) Method

Definition

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.

Applies to