Compartir a través de


WebApplication.Use(Func<RequestDelegate,RequestDelegate>) Método

Definición

Agrega el middleware a la canalización de solicitud de aplicación.

public Microsoft.AspNetCore.Builder.IApplicationBuilder Use (Func<Microsoft.AspNetCore.Http.RequestDelegate,Microsoft.AspNetCore.Http.RequestDelegate> middleware);
abstract member Use : Func<Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.AspNetCore.Http.RequestDelegate> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
override this.Use : Func<Microsoft.AspNetCore.Http.RequestDelegate, Microsoft.AspNetCore.Http.RequestDelegate> -> Microsoft.AspNetCore.Builder.IApplicationBuilder
Public Function Use (middleware As Func(Of RequestDelegate, RequestDelegate)) As IApplicationBuilder

Parámetros

middleware
Func<RequestDelegate,RequestDelegate>

Middleware.

Devoluciones

Instancia de IApplicationBuilder una vez completada la operación.

Implementaciones

Se aplica a