HubConnectionContext 생성자
정의
중요
일부 정보는 릴리스되기 전에 상당 부분 수정될 수 있는 시험판 제품과 관련이 있습니다. Microsoft는 여기에 제공된 정보에 대해 어떠한 명시적이거나 묵시적인 보증도 하지 않습니다.
오버로드
HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)
- Source:
- HubConnectionContext.cs
HubConnectionContext 클래스의 새 인스턴스를 초기화합니다.
public:
HubConnectionContext(Microsoft::AspNetCore::Connections::ConnectionContext ^ connectionContext, Microsoft::AspNetCore::SignalR::HubConnectionContextOptions ^ contextOptions, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnectionContext (Microsoft.AspNetCore.Connections.ConnectionContext connectionContext, Microsoft.AspNetCore.SignalR.HubConnectionContextOptions contextOptions, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.HubConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext * Microsoft.AspNetCore.SignalR.HubConnectionContextOptions * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.HubConnectionContext
Public Sub New (connectionContext As ConnectionContext, contextOptions As HubConnectionContextOptions, loggerFactory As ILoggerFactory)
매개 변수
- connectionContext
- ConnectionContext
내부 ConnectionContext입니다.
- contextOptions
- HubConnectionContextOptions
HubConnectionContext를 구성하는 옵션입니다.
- loggerFactory
- ILoggerFactory
로거 팩터리입니다.
적용 대상
HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)
- Source:
- HubConnectionContext.cs
- Source:
- HubConnectionContext.cs
HubConnectionContext 클래스의 새 인스턴스를 초기화합니다.
public:
HubConnectionContext(Microsoft::AspNetCore::Connections::ConnectionContext ^ connectionContext, TimeSpan keepAliveInterval, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnectionContext (Microsoft.AspNetCore.Connections.ConnectionContext connectionContext, TimeSpan keepAliveInterval, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.HubConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext * TimeSpan * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.HubConnectionContext
Public Sub New (connectionContext As ConnectionContext, keepAliveInterval As TimeSpan, loggerFactory As ILoggerFactory)
매개 변수
- connectionContext
- ConnectionContext
내부 ConnectionContext입니다.
- keepAliveInterval
- TimeSpan
연결 유지 간격입니다. 이 간격 동안 서버에서 메시지를 보내지 않으면 Ping 메시지가 전송됩니다.
- loggerFactory
- ILoggerFactory
로거 팩터리입니다.
적용 대상
HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)
- Source:
- HubConnectionContext.cs
HubConnectionContext 클래스의 새 인스턴스를 초기화합니다.
public:
HubConnectionContext(Microsoft::AspNetCore::Connections::ConnectionContext ^ connectionContext, TimeSpan keepAliveInterval, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, TimeSpan clientTimeoutInterval);
public HubConnectionContext (Microsoft.AspNetCore.Connections.ConnectionContext connectionContext, TimeSpan keepAliveInterval, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, TimeSpan clientTimeoutInterval);
new Microsoft.AspNetCore.SignalR.HubConnectionContext : Microsoft.AspNetCore.Connections.ConnectionContext * TimeSpan * Microsoft.Extensions.Logging.ILoggerFactory * TimeSpan -> Microsoft.AspNetCore.SignalR.HubConnectionContext
Public Sub New (connectionContext As ConnectionContext, keepAliveInterval As TimeSpan, loggerFactory As ILoggerFactory, clientTimeoutInterval As TimeSpan)
매개 변수
- connectionContext
- ConnectionContext
내부 ConnectionContext입니다.
- keepAliveInterval
- TimeSpan
연결 유지 간격입니다. 이 간격 동안 서버에서 메시지를 보내지 않으면 Ping 메시지가 전송됩니다.
- loggerFactory
- ILoggerFactory
로거 팩터리입니다.
- clientTimeoutInterval
- TimeSpan
이 간격에서 들어본 적이 없는 클라이언트는 연결이 끊어진 것으로 간주됩니다.