TransportManager.GetTransport Method
.NET Framework 4
Gets the specified transport for the specified HostContext.
Namespace: Microsoft.AspNet.SignalR.Transports
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Public Function GetTransport ( _
hostContext As HostContext _
) As ITransport
'Usage
Dim instance As TransportManager
Dim hostContext As HostContext
Dim returnValue As ITransport
returnValue = instance.GetTransport(hostContext)
public ITransport GetTransport(
HostContext hostContext
)
public:
virtual ITransport^ GetTransport(
HostContext^ hostContext
) sealed
abstract GetTransport :
hostContext:HostContext -> ITransport
override GetTransport :
hostContext:HostContext -> ITransport
public final function GetTransport(
hostContext : HostContext
) : ITransport
Parameters
- hostContext
Type: Microsoft.AspNet.SignalR.Hosting.HostContext
The HostContext for the current request.
Return Value
Type: Microsoft.AspNet.SignalR.Transports.ITransport
The ITransport for the specified HostContext.
Implements
ITransportManager.GetTransport(HostContext)