Compartir a través de


HubConnectionContext Constructores

Definición

Sobrecargas

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Inicializa una nueva instancia de la clase HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Inicializa una nueva instancia de la clase HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Inicializa una nueva instancia de la clase HubConnectionContext.

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Source:
HubConnectionContext.cs

Inicializa una nueva instancia de la clase 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

Objeto ConnectionContext subyacente.

contextOptions
HubConnectionContextOptions

Las opciones para configurar HubConnectionContext.

loggerFactory
ILoggerFactory

El generador del registrador.

Se aplica a

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Source:
HubConnectionContext.cs
Source:
HubConnectionContext.cs

Inicializa una nueva instancia de la clase 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

Objeto ConnectionContext subyacente.

keepAliveInterval
TimeSpan

Intervalo de mantenimiento de conexión. Si el servidor no envía ningún mensaje en este intervalo, se enviará un mensaje ping.

loggerFactory
ILoggerFactory

El generador del registrador.

Se aplica a

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Source:
HubConnectionContext.cs

Inicializa una nueva instancia de la clase 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

Objeto ConnectionContext subyacente.

keepAliveInterval
TimeSpan

Intervalo de mantenimiento de conexión. Si el servidor no envía ningún mensaje en este intervalo, se enviará un mensaje ping.

loggerFactory
ILoggerFactory

El generador del registrador.

clientTimeoutInterval
TimeSpan

Se supone que los clientes que no hemos escuchado en este intervalo se han desconectado.

Se aplica a