ConnectionsRouteBuilder 类

定义

注意

This class is obsolete and will be removed in a future version. The recommended alternative is to use MapConnection and MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).

将路由映射到 ASP.NET Core连接处理程序。

此类已过时,将在将来的版本中删除。 建议的替代方法是在 Microsoft.AspNetCore.Builder.UseEndpoints (...) 中使用 MapConnectionHandler 和 MapConnectionHandler TConnectionHandler<>。

public ref class ConnectionsRouteBuilder
public class ConnectionsRouteBuilder
[System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapConnection and MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")]
public class ConnectionsRouteBuilder
type ConnectionsRouteBuilder = class
[<System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapConnection and MapConnectionHandler<TConnectionHandler> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")>]
type ConnectionsRouteBuilder = class
Public Class ConnectionsRouteBuilder
继承
ConnectionsRouteBuilder
属性

方法

MapConnectionHandler<TConnectionHandler>(PathString)
已过时。

使用指定的路径映射到提供的连接管道的传入请求。

MapConnectionHandler<TConnectionHandler>(PathString, Action<HttpConnectionDispatcherOptions>)
已过时。

使用指定的路径映射到提供的连接管道的传入请求。

MapConnections(PathString, Action<IConnectionBuilder>)
已过时。

使用指定的路径映射到提供的连接管道的传入请求。

MapConnections(PathString, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>)
已过时。

使用指定的路径映射到提供的连接管道的传入请求。

适用于