Udostępnij za pośrednictwem


SignalRConnectionBuilderExtensions.UseHub<THub> Metoda

Definicja

Skonfiguruj połączenie do hostowania określonego Hub typu.

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

Parametry typu

THub

Hub Typ do hostowania w połączeniu.

Parametry

connectionBuilder
IConnectionBuilder

Połączenie do skonfigurowania.

Zwraca

To samo wystąpienie elementu IConnectionBuilder do tworzenia łańcucha.

Dotyczy