Compartilhar via


SignalRConnectionBuilderExtensions.UseHub<THub> Método

Definição

Configure a conexão para hospedar o tipo especificado 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

Parâmetros de tipo

THub

O Hub tipo a ser hospedado na conexão.

Parâmetros

connectionBuilder
IConnectionBuilder

A conexão a ser configurada.

Retornos

A mesma instância do IConnectionBuilder para encadeamento.

Aplica-se a