Partilhar via


DefaultHttpContext.Initialize(IFeatureCollection) Método

Definição

Reinicialize o instante atual da classe com recursos passados.

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)

Parâmetros

features
IFeatureCollection

O novo conjunto de recursos para o DefaultHttpContext.

Comentários

Esse método permite que o consumidor reutilize o DefaultHttpContext para outra solicitação, em vez de precisar alocar uma nova instância.

Aplica-se a