IHttpContextFactory.Create(IFeatureCollection) Method

Definition

Creates an HttpContext instance for the specified set of HTTP features.

C#
public Microsoft.AspNetCore.Http.HttpContext Create (Microsoft.AspNetCore.Http.Features.IFeatureCollection featureCollection);

Parameters

featureCollection
IFeatureCollection

The collection of HTTP features to set on the created instance.

Returns

The HttpContext instance.

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0