Share via


HubConnectionContext Constructors

Definition

Overloads

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Initializes a new instance of the HubConnectionContext class.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Initializes a new instance of the HubConnectionContext class.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Initializes a new instance of the HubConnectionContext class.

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Source:
HubConnectionContext.cs

Initializes a new instance of the HubConnectionContext class.

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)

Parameters

connectionContext
ConnectionContext

The underlying ConnectionContext.

contextOptions
HubConnectionContextOptions

The options to configure the HubConnectionContext.

loggerFactory
ILoggerFactory

The logger factory.

Applies to

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Source:
HubConnectionContext.cs
Source:
HubConnectionContext.cs

Initializes a new instance of the HubConnectionContext class.

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)

Parameters

connectionContext
ConnectionContext

The underlying ConnectionContext.

keepAliveInterval
TimeSpan

The keep alive interval. If no messages are sent by the server in this interval, a Ping message will be sent.

loggerFactory
ILoggerFactory

The logger factory.

Applies to

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Source:
HubConnectionContext.cs

Initializes a new instance of the HubConnectionContext class.

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)

Parameters

connectionContext
ConnectionContext

The underlying ConnectionContext.

keepAliveInterval
TimeSpan

The keep alive interval. If no messages are sent by the server in this interval, a Ping message will be sent.

loggerFactory
ILoggerFactory

The logger factory.

clientTimeoutInterval
TimeSpan

Clients we haven't heard from in this interval are assumed to have disconnected.

Applies to