DefaultHttpContext.Initialize(IFeatureCollection) Methode

Definition

Initialisieren Sie den aktuellen Moment der -Klasse mit übergebenen Features neu.

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)

Parameter

features
IFeatureCollection

Der neue Satz von Features für .DefaultHttpContext

Hinweise

Diese Methode ermöglicht es dem Consumer, die DefaultHttpContext für eine andere Anforderung wiederzuverwenden, anstatt eine neue instance zuordnen zu müssen.

Gilt für: