HubConnectionContext Constructeurs

Définition

Surcharges

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Initialise une nouvelle instance de la classe HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Initialise une nouvelle instance de la classe HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Initialise une nouvelle instance de la classe HubConnectionContext.

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Initialise une nouvelle instance de la 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)

Paramètres

connectionContext
ConnectionContext

L'élément ConnectionContext sous-jacent.

contextOptions
HubConnectionContextOptions

Options permettant de configurer HubConnectionContext.

loggerFactory
ILoggerFactory

Fabrique du journaliseur.

S’applique à

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Initialise une nouvelle instance de la 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)

Paramètres

connectionContext
ConnectionContext

L'élément ConnectionContext sous-jacent.

keepAliveInterval
TimeSpan

Intervalle pendant lequel maintenir l'activité. Si aucun message n’est envoyé par le serveur dans cet intervalle, un message Ping est envoyé.

loggerFactory
ILoggerFactory

Fabrique du journaliseur.

S’applique à

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Initialise une nouvelle instance de la 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)

Paramètres

connectionContext
ConnectionContext

L'élément ConnectionContext sous-jacent.

keepAliveInterval
TimeSpan

Intervalle pendant lequel maintenir l'activité. Si aucun message n’est envoyé par le serveur dans cet intervalle, un message Ping est envoyé.

loggerFactory
ILoggerFactory

Fabrique du journaliseur.

clientTimeoutInterval
TimeSpan

Les clients dont nous n’avons pas entendu parler au cours de cet intervalle sont supposés être déconnectés.

S’applique à