ITransportManager.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
Function GetTransport ( _
hostContext As HostContext _
) As ITransport
'Usage
Dim instance As ITransportManager
Dim hostContext As HostContext
Dim returnValue As ITransport
returnValue = instance.GetTransport(hostContext)
ITransport GetTransport(
HostContext hostContext
)
ITransport^ GetTransport(
HostContext^ hostContext
)
abstract GetTransport :
hostContext:HostContext -> ITransport
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.