HubsLocator.GetHub<T> Method

<< Click to Display Table of Contents >>

Navigation:  Reference > BNCS.Core.DriverFramework.SignalR Namespace > HubsLocator Class > HubsLocator Methods >

HubsLocator.GetHub<T> Method

Resolves IHubContext of type T from the service provider

Namespace: BNCS.Core.DriverFramework.SignalR
Assembly:  BNCS.Core.DriverFramework (in BNCS.Core.DriverFramework.dll)

 

Syntax


public static IHubContext<T> GetHub<T>()
where T : Hub

Type Parameters

T

Type of SignalR Hub

Return Value

Initialized hub context

 

Exceptions


Exception

Condition

[InvalidOperationException]

Thrown if hub context can't be resolved

 

See Also


HubsLocator Class

BNCS.Core.DriverFramework.SignalR Namespace