IApplicationBuilder.Use(Func<RequestDelegate,RequestDelegate>) Methode

Definition

Fügt der Anforderungspipeline der Anwendung einen Middlewaredelegat hinzu.

C#
public Microsoft.AspNetCore.Builder.IApplicationBuilder Use (Func<Microsoft.AspNetCore.Http.RequestDelegate,Microsoft.AspNetCore.Http.RequestDelegate> middleware);

Parameter

middleware
Func<RequestDelegate,RequestDelegate>

Der Middlewaredelegat.

Gibt zurück

Die IApplicationBuilder.

Gilt für:

Produkt Versionen
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