Partilhar via


HubConnectionHandler<THub> Classe

Definição

Lida com conexões de entrada e implementa o Protocolo do Hub 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

Parâmetros de tipo

THub
Herança
HubConnectionHandler<THub>

Construtores

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

Inicializa uma nova instância da classe HubConnectionHandler<THub>.

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

Inicializa uma nova instância da classe HubConnectionHandler<THub>.

Métodos

OnConnectedAsync(ConnectionContext)

Chamado quando uma nova conexão é aceita para o ponto de extremidade.

Aplica-se a