IApplicationBuilder.Use(Func<RequestDelegate,RequestDelegate>) Метод

Определение

Добавляет делегат ПО промежуточного слоя в конвейер запросов приложения.

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

Параметры

middleware
Func<RequestDelegate,RequestDelegate>

Делегат ПО промежуточного слоя.

Возвращаемое значение

IApplicationBuilder.

Применяется к