다음을 통해 공유


SignalRConnectionBuilderExtensions.UseHub<THub> 메서드

정의

지정된 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

형식 매개 변수

THub

Hub 연결에서 호스트할 형식입니다.

매개 변수

connectionBuilder
IConnectionBuilder

구성할 연결입니다.

반환

연결을 위한 IConnectionBuilder의 동일한 인스턴스입니다.

적용 대상