HubConnection 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
HubConnection(IConnectionFactory, IHubProtocol, ILoggerFactory)
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
HubConnection 클래스의 새 인스턴스를 초기화합니다.
public:
HubConnection(Microsoft::AspNetCore::SignalR::Client::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnection (Microsoft.AspNetCore.SignalR.Client.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.SignalR.Client.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, loggerFactory As ILoggerFactory)
매개 변수
- connectionFactory
- IConnectionFactory
IConnectionFactory 호출할 때마다 StartAsync(CancellationToken) 연결을 만드는 데 사용되는 입니다.
- protocol
- IHubProtocol
IHubProtocol 연결에서 사용되는 입니다.
- loggerFactory
- ILoggerFactory
로거 팩터리입니다.
적용 대상
HubConnection(IConnectionFactory, IHubProtocol, IServiceProvider, ILoggerFactory)
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
HubConnection 클래스의 새 인스턴스를 초기화합니다.
public:
HubConnection(Microsoft::AspNetCore::SignalR::Client::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, IServiceProvider ^ serviceProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnection (Microsoft.AspNetCore.SignalR.Client.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.SignalR.Client.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, serviceProvider As IServiceProvider, loggerFactory As ILoggerFactory)
매개 변수
- connectionFactory
- IConnectionFactory
IConnectionFactory 호출할 때마다 StartAsync(CancellationToken) 연결을 만드는 데 사용되는 입니다.
- protocol
- IHubProtocol
IHubProtocol 연결에서 사용되는 입니다.
- serviceProvider
- IServiceProvider
IServiceProvider 이 HubConnection instance 제공된 서비스를 포함하는 입니다.
- loggerFactory
- ILoggerFactory
로거 팩터리입니다.
설명
연결을 초기화하는 데 사용되는 는 IServiceProvider 연결이 삭제될 때 삭제됩니다.
적용 대상
HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory)
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
HubConnection 클래스의 새 인스턴스를 초기화합니다.
public:
HubConnection(Microsoft::AspNetCore::Connections::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, System::Net::EndPoint ^ endPoint, IServiceProvider ^ serviceProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnection (Microsoft.AspNetCore.Connections.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, System.Net.EndPoint endPoint, IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.Connections.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * System.Net.EndPoint * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, endPoint As EndPoint, serviceProvider As IServiceProvider, loggerFactory As ILoggerFactory)
매개 변수
- connectionFactory
- IConnectionFactory
IConnectionFactory 호출할 때마다 StartAsync(CancellationToken) 연결을 만드는 데 사용되는 입니다.
- protocol
- IHubProtocol
IHubProtocol 연결에서 사용되는 입니다.
- serviceProvider
- IServiceProvider
IServiceProvider 이 HubConnection instance 제공된 서비스를 포함하는 입니다.
- loggerFactory
- ILoggerFactory
로거 팩터리입니다.
설명
연결을 초기화하는 데 사용되는 는 IServiceProvider 연결이 삭제될 때 삭제됩니다.
적용 대상
HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory, IRetryPolicy)
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
- Source:
- HubConnection.cs
HubConnection 클래스의 새 인스턴스를 초기화합니다.
public:
HubConnection(Microsoft::AspNetCore::Connections::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, System::Net::EndPoint ^ endPoint, IServiceProvider ^ serviceProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::SignalR::Client::IRetryPolicy ^ reconnectPolicy);
public HubConnection (Microsoft.AspNetCore.Connections.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, System.Net.EndPoint endPoint, IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.SignalR.Client.IRetryPolicy reconnectPolicy);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.Connections.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * System.Net.EndPoint * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.SignalR.Client.IRetryPolicy -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, endPoint As EndPoint, serviceProvider As IServiceProvider, loggerFactory As ILoggerFactory, reconnectPolicy As IRetryPolicy)
매개 변수
- connectionFactory
- IConnectionFactory
IConnectionFactory 호출할 때마다 StartAsync(CancellationToken) 연결을 만드는 데 사용되는 입니다.
- protocol
- IHubProtocol
IHubProtocol 연결에서 사용되는 입니다.
- serviceProvider
- IServiceProvider
IServiceProvider 이 HubConnection instance 제공된 서비스를 포함하는 입니다.
- loggerFactory
- ILoggerFactory
로거 팩터리입니다.
- reconnectPolicy
- IRetryPolicy
IRetryPolicy 다시 연결 시도의 타이밍과 횟수를 제어하는 입니다.
가 HubConnection null이면 가 reconnectPolicy
다시 연결되지 않습니다.
설명
연결을 초기화하는 데 사용되는 는 IServiceProvider 연결이 삭제될 때 삭제됩니다.