HubConnection Costruttori
Definizione
Importante
Alcune informazioni sono relative alla release non definitiva del prodotto, che potrebbe subire modifiche significative prima della release definitiva. Microsoft non riconosce alcuna garanzia, espressa o implicita, in merito alle informazioni qui fornite.
Overload
HubConnection(IConnectionFactory, IHubProtocol, ILoggerFactory) |
Inizializza una nuova istanza della classe HubConnection. |
HubConnection(IConnectionFactory, IHubProtocol, IServiceProvider, ILoggerFactory) |
Inizializza una nuova istanza della classe HubConnection. |
HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory) |
Inizializza una nuova istanza della classe HubConnection. |
HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory, IRetryPolicy) |
Inizializza una nuova istanza della classe HubConnection. |
HubConnection(IConnectionFactory, IHubProtocol, ILoggerFactory)
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
Inizializza una nuova istanza della classe 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)
Parametri
- connectionFactory
- IConnectionFactory
Oggetto IConnectionFactory utilizzato per creare una connessione ogni volta StartAsync(CancellationToken) che viene chiamato .
- protocol
- IHubProtocol
Oggetto IHubProtocol utilizzato dalla connessione.
- loggerFactory
- ILoggerFactory
Factory del logger.
Si applica a
HubConnection(IConnectionFactory, IHubProtocol, IServiceProvider, ILoggerFactory)
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
Inizializza una nuova istanza della classe 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)
Parametri
- connectionFactory
- IConnectionFactory
Oggetto IConnectionFactory utilizzato per creare una connessione ogni volta StartAsync(CancellationToken) che viene chiamato .
- protocol
- IHubProtocol
Oggetto IHubProtocol utilizzato dalla connessione.
- serviceProvider
- IServiceProvider
Oggetto IServiceProvider contenente i servizi forniti a questa HubConnection istanza.
- loggerFactory
- ILoggerFactory
Factory del logger.
Commenti
L'oggetto IServiceProvider utilizzato per inizializzare la connessione verrà eliminato quando la connessione viene eliminata.
Si applica a
HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory)
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
Inizializza una nuova istanza della classe 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)
Parametri
- connectionFactory
- IConnectionFactory
Oggetto IConnectionFactory utilizzato per creare una connessione ogni volta StartAsync(CancellationToken) che viene chiamato .
- protocol
- IHubProtocol
Oggetto IHubProtocol utilizzato dalla connessione.
- serviceProvider
- IServiceProvider
Oggetto IServiceProvider contenente i servizi forniti a questa HubConnection istanza.
- loggerFactory
- ILoggerFactory
Factory del logger.
Commenti
L'oggetto IServiceProvider utilizzato per inizializzare la connessione verrà eliminato quando la connessione viene eliminata.
Si applica a
HubConnection(IConnectionFactory, IHubProtocol, EndPoint, IServiceProvider, ILoggerFactory, IRetryPolicy)
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
- Origine:
- HubConnection.cs
Inizializza una nuova istanza della classe 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)
Parametri
- connectionFactory
- IConnectionFactory
Oggetto IConnectionFactory utilizzato per creare una connessione ogni volta StartAsync(CancellationToken) che viene chiamato .
- protocol
- IHubProtocol
Oggetto IHubProtocol utilizzato dalla connessione.
- serviceProvider
- IServiceProvider
Oggetto IServiceProvider contenente i servizi forniti a questa HubConnection istanza.
- loggerFactory
- ILoggerFactory
Factory del logger.
- reconnectPolicy
- IRetryPolicy
Oggetto IRetryPolicy che controlla l'intervallo e il numero di tentativi di riconnessione.
L'oggetto HubConnection non si riconnette se è reconnectPolicy
Null.
Commenti
L'oggetto IServiceProvider utilizzato per inizializzare la connessione verrà eliminato quando la connessione viene eliminata.