Condividi tramite


SignalRConnectionBuilderExtensions.UseHub<THub> Metodo

Definizione

Configurare la connessione per ospitare il tipo specificato Hub .

public:
generic <typename THub>
 where THub : Microsoft::AspNetCore::SignalR::Hub[System::Runtime::CompilerServices::Extension]
 static Microsoft::AspNetCore::Connections::IConnectionBuilder ^ UseHub(Microsoft::AspNetCore::Connections::IConnectionBuilder ^ connectionBuilder);
public static Microsoft.AspNetCore.Connections.IConnectionBuilder UseHub<THub> (this Microsoft.AspNetCore.Connections.IConnectionBuilder connectionBuilder) where THub : Microsoft.AspNetCore.SignalR.Hub;
static member UseHub : Microsoft.AspNetCore.Connections.IConnectionBuilder -> Microsoft.AspNetCore.Connections.IConnectionBuilder (requires 'Hub :> Microsoft.AspNetCore.SignalR.Hub)
<Extension()>
Public Function UseHub(Of THub As Hub) (connectionBuilder As IConnectionBuilder) As IConnectionBuilder

Parametri di tipo

THub

Tipo Hub da ospitare nella connessione.

Parametri

connectionBuilder
IConnectionBuilder

Connessione da configurare.

Restituisce

Stessa istanza di IConnectionBuilder per il concatenamento.

Si applica a