共用方式為


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, Action<HttpConnectionDispatcherOptions>)
已淘汰.

將連入要求與所提供連接管線的指定路徑對應。

MapConnectionHandler<TConnectionHandler>(PathString)
已淘汰.

將連入要求與所提供連接管線的指定路徑對應。

MapConnections(PathString, Action<IConnectionBuilder>)
已淘汰.

將連入要求與所提供連接管線的指定路徑對應。

MapConnections(PathString, HttpConnectionDispatcherOptions, Action<IConnectionBuilder>)
已淘汰.

將連入要求與所提供連接管線的指定路徑對應。

適用於