共用方式為


HubConnectionHandler<THub> 類別

定義

處理連入連線並實作 SignalR 中樞通訊協定。

generic <typename THub>
 where THub : Hubpublic ref class HubConnectionHandler : Microsoft::AspNetCore::Connections::ConnectionHandler
public class HubConnectionHandler<THub> : Microsoft.AspNetCore.Connections.ConnectionHandler where THub : Hub
type HubConnectionHandler<'Hub (requires 'Hub :> Hub)> = class
    inherit ConnectionHandler
Public Class HubConnectionHandler(Of THub)
Inherits ConnectionHandler

類型參數

THub
繼承
HubConnectionHandler<THub>

建構函式

HubConnectionHandler<THub>(HubLifetimeManager<THub>, IHubProtocolResolver, IOptions<HubOptions>, IOptions<HubOptions<THub>>, ILoggerFactory, IUserIdProvider, HubDispatcher<THub>)

初始化 HubConnectionHandler<THub> 類別的新執行個體。

HubConnectionHandler<THub>(HubLifetimeManager<THub>, IHubProtocolResolver, IOptions<HubOptions>, IOptions<HubOptions<THub>>, ILoggerFactory, IUserIdProvider, IServiceScopeFactory)

初始化 HubConnectionHandler<THub> 類別的新執行個體。

方法

OnConnectedAsync(ConnectionContext)

接受新連線至端點時呼叫。

適用於