ConnectionBuilder.Use Method

Definition

Adds a middleware delegate to the application's connection pipeline.

C#
public Microsoft.AspNetCore.Connections.IConnectionBuilder Use (Func<Microsoft.AspNetCore.Connections.ConnectionDelegate,Microsoft.AspNetCore.Connections.ConnectionDelegate> middleware);

Parameters

middleware
Func<ConnectionDelegate,ConnectionDelegate>

The middleware delegate.

Returns

The IConnectionBuilder.

Implements

Applies to

منتج الإصدارات
ASP.NET Core 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0