共用方式為


HubRouteBuilder 類別

定義

警告

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

將連入要求對應至 Hub 類型。

這個類別已經過時,未來版本將會移除。 建議的替代方案是使用 Microsoft.AspNetCore.Builder.UseEndpoints (...) 內的 MapHub THub <> 。

public ref class HubRouteBuilder
public class HubRouteBuilder
[System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")]
public class HubRouteBuilder
type HubRouteBuilder = class
[<System.Obsolete("This class is obsolete and will be removed in a future version. The recommended alternative is to use MapHub<THub> inside Microsoft.AspNetCore.Builder.UseEndpoints(...).")>]
type HubRouteBuilder = class
Public Class HubRouteBuilder
繼承
HubRouteBuilder
屬性

建構函式

HubRouteBuilder(ConnectionsRouteBuilder)
已淘汰.

初始化 HubRouteBuilder 類別的新執行個體。

方法

MapHub<THub>(PathString, Action<HttpConnectionDispatcherOptions>)
已淘汰.

將具有指定路徑的傳入要求對應至指定的型別 Hub

MapHub<THub>(PathString)
已淘汰.

將具有指定路徑的傳入要求對應至指定的型別 Hub

適用於