Поделиться через


IConnectionBuilder.Use Метод

Определение

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

public:
 Microsoft::AspNetCore::Connections::IConnectionBuilder ^ Use(Func<Microsoft::AspNetCore::Connections::ConnectionDelegate ^, Microsoft::AspNetCore::Connections::ConnectionDelegate ^> ^ middleware);
public Microsoft.AspNetCore.Connections.IConnectionBuilder Use (Func<Microsoft.AspNetCore.Connections.ConnectionDelegate,Microsoft.AspNetCore.Connections.ConnectionDelegate> middleware);
abstract member Use : Func<Microsoft.AspNetCore.Connections.ConnectionDelegate, Microsoft.AspNetCore.Connections.ConnectionDelegate> -> Microsoft.AspNetCore.Connections.IConnectionBuilder
Public Function Use (middleware As Func(Of ConnectionDelegate, ConnectionDelegate)) As IConnectionBuilder

Параметры

middleware
Func<ConnectionDelegate,ConnectionDelegate>

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

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

IConnectionBuilder.

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