Compartir a través de


HubConnection Constructores

Definición

Sobrecargas

HubConnection(IConnectionFactory, IHubProtocol, ILoggerFactory)

Inicializa una nueva instancia de la clase HubConnection.

HubConnection(IConnectionFactory, IHubProtocol, IServiceProvider, ILoggerFactory)

Inicializa una nueva instancia de la clase HubConnection.

HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory)

Inicializa una nueva instancia de la clase HubConnection.

HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory, IRetryPolicy)

Inicializa una nueva instancia de la clase HubConnection.

HubConnection(IConnectionFactory, IHubProtocol, ILoggerFactory)

Source:
HubConnection.cs
Source:
HubConnection.cs

Inicializa una nueva instancia de la clase HubConnection.

public:
 HubConnection(Microsoft::AspNetCore::SignalR::Client::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnection (Microsoft.AspNetCore.SignalR.Client.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.SignalR.Client.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, loggerFactory As ILoggerFactory)

Parámetros

connectionFactory
IConnectionFactory

que IConnectionFactory se usa para crear una conexión cada vez StartAsync(CancellationToken) que se llama a .

protocol
IHubProtocol

utilizado IHubProtocol por la conexión.

loggerFactory
ILoggerFactory

El generador del registrador.

Se aplica a

HubConnection(IConnectionFactory, IHubProtocol, IServiceProvider, ILoggerFactory)

Source:
HubConnection.cs
Source:
HubConnection.cs

Inicializa una nueva instancia de la clase HubConnection.

public:
 HubConnection(Microsoft::AspNetCore::SignalR::Client::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, IServiceProvider ^ serviceProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnection (Microsoft.AspNetCore.SignalR.Client.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.SignalR.Client.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, serviceProvider As IServiceProvider, loggerFactory As ILoggerFactory)

Parámetros

connectionFactory
IConnectionFactory

que IConnectionFactory se usa para crear una conexión cada vez StartAsync(CancellationToken) que se llama a .

protocol
IHubProtocol

utilizado IHubProtocol por la conexión.

serviceProvider
IServiceProvider

que IServiceProvider contiene los servicios proporcionados a esta HubConnection instancia.

loggerFactory
ILoggerFactory

El generador del registrador.

Comentarios

El IServiceProvider objeto que se usa para inicializar la conexión se eliminará cuando se elimine la conexión.

Se aplica a

HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory)

Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs

Inicializa una nueva instancia de la clase HubConnection.

public:
 HubConnection(Microsoft::AspNetCore::Connections::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, System::Net::EndPoint ^ endPoint, IServiceProvider ^ serviceProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory);
public HubConnection (Microsoft.AspNetCore.Connections.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, System.Net.EndPoint endPoint, IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.Connections.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * System.Net.EndPoint * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, endPoint As EndPoint, serviceProvider As IServiceProvider, loggerFactory As ILoggerFactory)

Parámetros

connectionFactory
IConnectionFactory

que IConnectionFactory se usa para crear una conexión cada vez StartAsync(CancellationToken) que se llama a .

protocol
IHubProtocol

utilizado IHubProtocol por la conexión.

endPoint
EndPoint

al EndPoint que se va a conectar.

serviceProvider
IServiceProvider

que IServiceProvider contiene los servicios proporcionados a esta HubConnection instancia.

loggerFactory
ILoggerFactory

El generador del registrador.

Comentarios

El IServiceProvider objeto que se usa para inicializar la conexión se eliminará cuando se elimine la conexión.

Se aplica a

HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory, IRetryPolicy)

Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs
Source:
HubConnection.cs

Inicializa una nueva instancia de la clase HubConnection.

public:
 HubConnection(Microsoft::AspNetCore::Connections::IConnectionFactory ^ connectionFactory, Microsoft::AspNetCore::SignalR::Protocol::IHubProtocol ^ protocol, System::Net::EndPoint ^ endPoint, IServiceProvider ^ serviceProvider, Microsoft::Extensions::Logging::ILoggerFactory ^ loggerFactory, Microsoft::AspNetCore::SignalR::Client::IRetryPolicy ^ reconnectPolicy);
public HubConnection (Microsoft.AspNetCore.Connections.IConnectionFactory connectionFactory, Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol protocol, System.Net.EndPoint endPoint, IServiceProvider serviceProvider, Microsoft.Extensions.Logging.ILoggerFactory loggerFactory, Microsoft.AspNetCore.SignalR.Client.IRetryPolicy reconnectPolicy);
new Microsoft.AspNetCore.SignalR.Client.HubConnection : Microsoft.AspNetCore.Connections.IConnectionFactory * Microsoft.AspNetCore.SignalR.Protocol.IHubProtocol * System.Net.EndPoint * IServiceProvider * Microsoft.Extensions.Logging.ILoggerFactory * Microsoft.AspNetCore.SignalR.Client.IRetryPolicy -> Microsoft.AspNetCore.SignalR.Client.HubConnection
Public Sub New (connectionFactory As IConnectionFactory, protocol As IHubProtocol, endPoint As EndPoint, serviceProvider As IServiceProvider, loggerFactory As ILoggerFactory, reconnectPolicy As IRetryPolicy)

Parámetros

connectionFactory
IConnectionFactory

que IConnectionFactory se usa para crear una conexión cada vez StartAsync(CancellationToken) que se llama a .

protocol
IHubProtocol

utilizado IHubProtocol por la conexión.

endPoint
EndPoint

al EndPoint que se va a conectar.

serviceProvider
IServiceProvider

que IServiceProvider contiene los servicios proporcionados a esta HubConnection instancia.

loggerFactory
ILoggerFactory

El generador del registrador.

reconnectPolicy
IRetryPolicy

IRetryPolicy que controla el tiempo y el número de intentos de reconexión. No HubConnection se volverá a conectar si es reconnectPolicy null.

Comentarios

El IServiceProvider objeto que se usa para inicializar la conexión se eliminará cuando se elimine la conexión.

Se aplica a