Condividi tramite


HubConnectionContext Costruttori

Definizione

Overload

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Inizializza una nuova istanza della classe HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Inizializza una nuova istanza della classe HubConnectionContext.

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Inizializza una nuova istanza della classe HubConnectionContext.

HubConnectionContext(ConnectionContext, HubConnectionContextOptions, ILoggerFactory)

Origine:
HubConnectionContext.cs

Inizializza una nuova istanza della 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)

Parametri

connectionContext
ConnectionContext

Oggetto ConnectionContext sottostante.

contextOptions
HubConnectionContextOptions

Opzioni per configurare HubConnectionContext.

loggerFactory
ILoggerFactory

Factory del logger.

Si applica a

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory)

Origine:
HubConnectionContext.cs
Origine:
HubConnectionContext.cs

Inizializza una nuova istanza della 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)

Parametri

connectionContext
ConnectionContext

Oggetto ConnectionContext sottostante.

keepAliveInterval
TimeSpan

L'intervallo di conservazione. Se nessun messaggio viene inviato dal server in questo intervallo, verrà inviato un messaggio Ping.

loggerFactory
ILoggerFactory

Factory del logger.

Si applica a

HubConnectionContext(ConnectionContext, TimeSpan, ILoggerFactory, TimeSpan)

Origine:
HubConnectionContext.cs

Inizializza una nuova istanza della 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)

Parametri

connectionContext
ConnectionContext

Oggetto ConnectionContext sottostante.

keepAliveInterval
TimeSpan

L'intervallo di conservazione. Se nessun messaggio viene inviato dal server in questo intervallo, verrà inviato un messaggio Ping.

loggerFactory
ILoggerFactory

Factory del logger.

clientTimeoutInterval
TimeSpan

I client da cui non è stato sentito parlare in questo intervallo vengono considerati disconnessi.

Si applica a