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)

接受与终结点的新连接时调用。

适用于