Compartilhar via


HubConnectionHandler<THub> Construtores

Definição

Sobrecargas

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>.

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

Origem:
HubConnectionHandler.cs
Origem:
HubConnectionHandler.cs

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

public:
 HubConnectionHandler(Microsoft::AspNetCore::SignalR::HubLifetimeManager<THub> ^ lifetimeManager, Microsoft::AspNetCore::SignalR::IHubProtocolResolver ^ protocolResolver, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::SignalR::HubOptions ^> ^ globalHubOptions, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::SignalR::HubOptions<THub> ^> ^ hubOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::SignalR::IUserIdProvider ^ userIdProvider, Microsoft::AspNetCore::SignalR::Internal::HubDispatcher<THub> ^ dispatcher);
public HubConnectionHandler (Microsoft.AspNetCore.SignalR.HubLifetimeManager<THub> lifetimeManager, Microsoft.AspNetCore.SignalR.IHubProtocolResolver protocolResolver, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> globalHubOptions, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<THub>> hubOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.SignalR.IUserIdProvider userIdProvider, Microsoft.AspNetCore.SignalR.Internal.HubDispatcher<THub> dispatcher);
new Microsoft.AspNetCore.SignalR.HubConnectionHandler<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> : Microsoft.AspNetCore.SignalR.HubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> * Microsoft.AspNetCore.SignalR.IHubProtocolResolver * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<'Hub>> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.SignalR.IUserIdProvider * Microsoft.AspNetCore.SignalR.Internal.HubDispatcher<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> -> Microsoft.AspNetCore.SignalR.HubConnectionHandler<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)>
Public Sub New (lifetimeManager As HubLifetimeManager(Of THub), protocolResolver As IHubProtocolResolver, globalHubOptions As IOptions(Of HubOptions), hubOptions As IOptions(Of HubOptions(Of THub)), loggerFactory As ILoggerFactory, userIdProvider As IUserIdProvider, dispatcher As HubDispatcher(Of THub))

Parâmetros

lifetimeManager
HubLifetimeManager<THub>

O gerenciador de tempo de vida do hub.

protocolResolver
IHubProtocolResolver

O resolvedor de protocolo usado para resolve os protocolos entre o cliente e o servidor.

globalHubOptions
IOptions<HubOptions>

As opções globais usadas para inicializar hubs.

hubOptions
IOptions<HubOptions<THub>>

Opções específicas do hub usadas para inicializar hubs. Essas opções substituem as opções globais.

loggerFactory
ILoggerFactory

A fábrica do agente.

userIdProvider
IUserIdProvider

O provedor de ID de usuário usado para obter a ID de usuário de uma conexão de hub.

dispatcher
Microsoft.AspNetCore.SignalR.Internal.HubDispatcher<THub>

O dispatcher do hub usado para expedir mensagens de entrada para hubs.

Comentários

Normalmente, essa classe é criada por meio de injeção de dependência.

Aplica-se a

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

Origem:
HubConnectionHandler.cs

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

public:
 HubConnectionHandler(Microsoft::AspNetCore::SignalR::HubLifetimeManager<THub> ^ lifetimeManager, Microsoft::AspNetCore::SignalR::IHubProtocolResolver ^ protocolResolver, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::SignalR::HubOptions ^> ^ globalHubOptions, Microsoft::Extensions::Options::IOptions<Microsoft::AspNetCore::SignalR::HubOptions<THub> ^> ^ hubOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::SignalR::IUserIdProvider ^ userIdProvider, Microsoft::Extensions::DependencyInjection::IServiceScopeFactory ^ serviceScopeFactory);
public HubConnectionHandler (Microsoft.AspNetCore.SignalR.HubLifetimeManager<THub> lifetimeManager, Microsoft.AspNetCore.SignalR.IHubProtocolResolver protocolResolver, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> globalHubOptions, Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<THub>> hubOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.SignalR.IUserIdProvider userIdProvider, Microsoft.Extensions.DependencyInjection.IServiceScopeFactory serviceScopeFactory);
new Microsoft.AspNetCore.SignalR.HubConnectionHandler<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> : Microsoft.AspNetCore.SignalR.HubLifetimeManager<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)> * Microsoft.AspNetCore.SignalR.IHubProtocolResolver * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions> * Microsoft.Extensions.Options.IOptions<Microsoft.AspNetCore.SignalR.HubOptions<'Hub>> * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.SignalR.IUserIdProvider * Microsoft.Extensions.DependencyInjection.IServiceScopeFactory -> Microsoft.AspNetCore.SignalR.HubConnectionHandler<'Hub (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)>
Public Sub New (lifetimeManager As HubLifetimeManager(Of THub), protocolResolver As IHubProtocolResolver, globalHubOptions As IOptions(Of HubOptions), hubOptions As IOptions(Of HubOptions(Of THub)), loggerFactory As ILoggerFactory, userIdProvider As IUserIdProvider, serviceScopeFactory As IServiceScopeFactory)

Parâmetros

lifetimeManager
HubLifetimeManager<THub>

O gerenciador de tempo de vida do hub.

protocolResolver
IHubProtocolResolver

O resolvedor de protocolo usado para resolve os protocolos entre o cliente e o servidor.

globalHubOptions
IOptions<HubOptions>

As opções globais usadas para inicializar hubs.

hubOptions
IOptions<HubOptions<THub>>

Opções específicas do hub usadas para inicializar hubs. Essas opções substituem as opções globais.

loggerFactory
ILoggerFactory

A fábrica do agente.

userIdProvider
IUserIdProvider

O provedor de ID de usuário usado para obter a ID de usuário de uma conexão de hub.

serviceScopeFactory
IServiceScopeFactory

O alocador de escopo de serviço.

Comentários

Normalmente, essa classe é criada por meio de injeção de dependência.

Aplica-se a