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