DefaultHttpContext.Initialize(IFeatureCollection) Method

Definition

Reinitialize the current instant of the class with features passed in.

public:
 virtual void Initialize(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public:
 void Initialize(Microsoft::AspNetCore::Http::Features::IFeatureCollection ^ features);
public virtual void Initialize (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
public void Initialize (Microsoft.AspNetCore.Http.Features.IFeatureCollection features);
abstract member Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
override this.Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
member this.Initialize : Microsoft.AspNetCore.Http.Features.IFeatureCollection -> unit
Public Overridable Sub Initialize (features As IFeatureCollection)
Public Sub Initialize (features As IFeatureCollection)

Parameters

features
IFeatureCollection

The new set of features for the DefaultHttpContext.

Remarks

This method allows the consumer to re-use the DefaultHttpContext for another request, rather than having to allocate a new instance.

Applies to