HubConnectionContext Construtores

Definição

Sobrecargas

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Inicializa uma nova instância da classe HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Inicializa uma nova instância da classe HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Inicializa uma nova instância da classe HubConnectionContext.

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Origem:
HubConnectionContext.cs

Inicializa uma nova instância da classe 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)

Parâmetros

connectionContext
ConnectionContext

O ConnectionContext subjacente.

contextOptions
HubConnectionContextOptions

As opções para configurar o HubConnectionContext.

loggerFactory
ILoggerFactory

A fábrica do agente.

Aplica-se a

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Origem:
HubConnectionContext.cs
Origem:
HubConnectionContext.cs

Inicializa uma nova instância da classe 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)

Parâmetros

connectionContext
ConnectionContext

O ConnectionContext subjacente.

keepAliveInterval
TimeSpan

O intervalo keep alive. Se nenhuma mensagem for enviada pelo servidor nesse intervalo, uma mensagem de Ping será enviada.

loggerFactory
ILoggerFactory

A fábrica do agente.

Aplica-se a

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Origem:
HubConnectionContext.cs

Inicializa uma nova instância da classe 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)

Parâmetros

connectionContext
ConnectionContext

O ConnectionContext subjacente.

keepAliveInterval
TimeSpan

O intervalo keep alive. Se nenhuma mensagem for enviada pelo servidor nesse intervalo, uma mensagem de Ping será enviada.

loggerFactory
ILoggerFactory

A fábrica do agente.

clientTimeoutInterval
TimeSpan

Presume-se que os clientes que não ouvimos neste intervalo tenham se desconectado.

Aplica-se a