HubConnectionHandler<THub> Costruttori

Definizione

Overload

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

Inizializza una nuova istanza della classe HubConnectionHandler<THub>.

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

Inizializza una nuova istanza della classe HubConnectionHandler<THub>.

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

Origine:
HubConnectionHandler.cs
Origine:
HubConnectionHandler.cs

Inizializza una nuova istanza della 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))

Parametri

lifetimeManager
HubLifetimeManager<THub>

Gestore della durata dell'hub.

protocolResolver
IHubProtocolResolver

Risoluzione dei protocolli usata per risolvere i protocolli tra client e server.

globalHubOptions
IOptions<HubOptions>

Opzioni globali usate per inizializzare gli hub.

hubOptions
IOptions<HubOptions<THub>>

Opzioni specifiche dell'hub usate per inizializzare gli hub. Queste opzioni eseguono l'override delle opzioni globali.

loggerFactory
ILoggerFactory

Factory del logger.

userIdProvider
IUserIdProvider

Provider ID utente usato per ottenere l'ID utente da una connessione hub.

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

Il dispatcher hub usato per inviare messaggi in ingresso agli hub.

Commenti

Questa classe viene in genere creata tramite l'inserimento delle dipendenze.

Si applica a

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

Origine:
HubConnectionHandler.cs

Inizializza una nuova istanza della 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)

Parametri

lifetimeManager
HubLifetimeManager<THub>

Gestore della durata dell'hub.

protocolResolver
IHubProtocolResolver

Risoluzione dei protocolli usata per risolvere i protocolli tra client e server.

globalHubOptions
IOptions<HubOptions>

Opzioni globali usate per inizializzare gli hub.

hubOptions
IOptions<HubOptions<THub>>

Opzioni specifiche dell'hub usate per inizializzare gli hub. Queste opzioni eseguono l'override delle opzioni globali.

loggerFactory
ILoggerFactory

Factory del logger.

userIdProvider
IUserIdProvider

Provider ID utente usato per ottenere l'ID utente da una connessione hub.

serviceScopeFactory
IServiceScopeFactory

Factory dell'ambito del servizio.

Commenti

Questa classe viene in genere creata tramite l'inserimento delle dipendenze.

Si applica a