共用方式為


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> 類別的新執行個體。

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

來源:
HubConnectionHandler.cs
來源:
HubConnectionHandler.cs

初始化 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))

參數

lifetimeManager
HubLifetimeManager<THub>

中樞存留期管理員。

protocolResolver
IHubProtocolResolver

用來解析用戶端與伺服器之間通訊協定的通訊協定解析程式。

globalHubOptions
IOptions<HubOptions>

用來初始化中樞的全域選項。

hubOptions
IOptions<HubOptions<THub>>

用來初始化中樞的中樞特定選項。 這些選項會覆寫全域選項。

loggerFactory
ILoggerFactory

記錄器工廠。

userIdProvider
IUserIdProvider

用來從中樞連線取得使用者識別碼的使用者識別碼提供者。

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

用來將傳入訊息分派至中樞的中樞發送器。

備註

這個類別通常是透過相依性插入所建立。

適用於

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

來源:
HubConnectionHandler.cs

初始化 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)

參數

lifetimeManager
HubLifetimeManager<THub>

中樞存留期管理員。

protocolResolver
IHubProtocolResolver

用來解析用戶端與伺服器之間通訊協定的通訊協定解析程式。

globalHubOptions
IOptions<HubOptions>

用來初始化中樞的全域選項。

hubOptions
IOptions<HubOptions<THub>>

用來初始化中樞的中樞特定選項。 這些選項會覆寫全域選項。

loggerFactory
ILoggerFactory

記錄器工廠。

userIdProvider
IUserIdProvider

用來從中樞連線取得使用者識別碼的使用者識別碼提供者。

serviceScopeFactory
IServiceScopeFactory

服務範圍處理站。

備註

這個類別通常是透過相依性插入所建立。

適用於