IConnectionBuilder.Use Méthode

Définition

Ajoute un délégué middleware au pipeline de connexion de l’application.

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

Paramètres

middleware
Func<ConnectionDelegate,ConnectionDelegate>

Délégué middleware.

Retours

L’IConnectionBuilderopérateur

S’applique à