ConnectionManager.GetHubContext<T> Method
.NET Framework 4
Namespace: Microsoft.AspNet.SignalR.Infrastructure
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Public Function GetHubContext(Of T As IHub) As IHubContext
'Usage
Dim instance As ConnectionManager
Dim returnValue As IHubContext
returnValue = instance.GetHubContext()
public IHubContext GetHubContext<T>()
where T : IHub
public:
generic<typename T>
where T : IHub
virtual IHubContext^ GetHubContext() sealed
abstract GetHubContext : unit -> IHubContext when 'T : IHub
override GetHubContext : unit -> IHubContext when 'T : IHub
JScript does not support generic types and methods.
Type Parameters
- T
Return Value
Type: Microsoft.AspNet.SignalR.IHubContext
Implements
IConnectionManager.GetHubContext<T>()