TransportManager.Register Method
.NET Framework 4
Adds a new transport to the list of supported transports.
Namespace: Microsoft.AspNet.SignalR.Transports
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Public Sub Register ( _
transportName As String, _
transportFactory As Func(Of HostContext, ITransport) _
)
'Usage
Dim instance As TransportManager
Dim transportName As String
Dim transportFactory As Func(Of HostContext, ITransport)
instance.Register(transportName, transportFactory)
public void Register(
string transportName,
Func<HostContext, ITransport> transportFactory
)
public:
void Register(
String^ transportName,
Func<HostContext^, ITransport^>^ transportFactory
)
member Register :
transportName:string *
transportFactory:Func<HostContext, ITransport> -> unit
public function Register(
transportName : String,
transportFactory : Func<HostContext, ITransport>
)
Parameters
- transportName
Type: System.String
The specified transport.
- transportFactory
Type: System.Func<HostContext, ITransport>
The factory method for the specified transport.