다음을 통해 공유


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

Source:
HubConnectionHandler.cs
Source:
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

클라이언트와 서버 간에 프로토콜을 resolve 데 사용되는 프로토콜 확인자입니다.

globalHubOptions
IOptions<HubOptions>

허브를 초기화하는 데 사용되는 전역 옵션입니다.

hubOptions
IOptions<HubOptions<THub>>

허브를 초기화하는 데 사용되는 허브별 옵션입니다. 이러한 옵션은 전역 옵션을 재정의합니다.

loggerFactory
ILoggerFactory

로거 팩터리입니다.

userIdProvider
IUserIdProvider

허브 연결에서 사용자 ID를 가져오는 데 사용되는 사용자 ID 공급자입니다.

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

들어오는 메시지를 허브로 디스패치하는 데 사용되는 허브 디스패처입니다.

설명

이 클래스는 일반적으로 종속성 주입을 통해 만들어집니다.

적용 대상

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

Source:
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

클라이언트와 서버 간에 프로토콜을 resolve 데 사용되는 프로토콜 확인자입니다.

globalHubOptions
IOptions<HubOptions>

허브를 초기화하는 데 사용되는 전역 옵션입니다.

hubOptions
IOptions<HubOptions<THub>>

허브를 초기화하는 데 사용되는 허브별 옵션입니다. 이러한 옵션은 전역 옵션을 재정의합니다.

loggerFactory
ILoggerFactory

로거 팩터리입니다.

userIdProvider
IUserIdProvider

허브 연결에서 사용자 ID를 가져오는 데 사용되는 사용자 ID 공급자입니다.

serviceScopeFactory
IServiceScopeFactory

서비스 scope 팩터리입니다.

설명

이 클래스는 일반적으로 종속성 주입을 통해 만들어집니다.

적용 대상