Compartilhar via


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

Definição

Adiciona um delegado de middleware ao pipeline de solicitação do aplicativo.

public:
 Microsoft::AspNetCore::Builder::IApplicationBuilder ^ Use(Func<Microsoft::AspNetCore::Http::RequestDelegate ^, Microsoft::AspNetCore::Http::RequestDelegate ^> ^ middleware);
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
Public Function Use (middleware As Func(Of RequestDelegate, RequestDelegate)) As IApplicationBuilder

Parâmetros

middleware
Func<RequestDelegate,RequestDelegate>

O delegado do middleware.

Retornos

O IApplicationBuilder.

Aplica-se a