Compartir a través de


IConnectionBuilder.Use Método

Definición

Agrega un delegado de middleware a la canalización de conexión de la aplicación.

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

Parámetros

middleware
Func<ConnectionDelegate,ConnectionDelegate>

Delegado de middleware.

Devoluciones

IConnectionBuilder.

Se aplica a