Compartir a través de


HubConnectionHandler<THub> Constructores

Definición

Sobrecargas

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

Inicializa una nueva instancia de la clase HubConnectionHandler<THub>.

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

Inicializa una nueva instancia de la clase HubConnectionHandler<THub>.

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

Source:
HubConnectionHandler.cs
Source:
HubConnectionHandler.cs

Inicializa una nueva instancia de la clase 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>

Administrador de duración del centro.

protocolResolver
IHubProtocolResolver

Solucionador de protocolos usado para resolver los protocolos entre el cliente y el servidor.

globalHubOptions
IOptions<HubOptions>

Las opciones globales que se usan para inicializar los centros.

hubOptions
IOptions<HubOptions<THub>>

Opciones específicas del concentrador usadas para inicializar centros. Estas opciones invalidan las opciones globales.

loggerFactory
ILoggerFactory

El generador del registrador.

userIdProvider
IUserIdProvider

El proveedor de identificadores de usuario que se usa para obtener el identificador de usuario de una conexión de concentrador.

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

Distribuidor concentrador que se usa para enviar mensajes entrantes a los concentradores.

Comentarios

Esta clase se crea normalmente a través de la inserción de dependencias.

Se aplica a

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

Source:
HubConnectionHandler.cs

Inicializa una nueva instancia de la clase 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>

Administrador de duración del centro.

protocolResolver
IHubProtocolResolver

Solucionador de protocolos usado para resolver los protocolos entre el cliente y el servidor.

globalHubOptions
IOptions<HubOptions>

Las opciones globales que se usan para inicializar los centros.

hubOptions
IOptions<HubOptions<THub>>

Opciones específicas del concentrador usadas para inicializar centros. Estas opciones invalidan las opciones globales.

loggerFactory
ILoggerFactory

El generador del registrador.

userIdProvider
IUserIdProvider

El proveedor de identificadores de usuario que se usa para obtener el identificador de usuario de una conexión de concentrador.

serviceScopeFactory
IServiceScopeFactory

Generador de ámbitos de servicio.

Comentarios

Esta clase se crea normalmente a través de la inserción de dependencias.

Se aplica a