IHubPipelineModule.BuildConnect Method
.NET Framework 4
Wraps a function that is called when a client connects to the HubDispatcher for each IHub the client connects to. By default, this results in the IHub 's OnConnected method being invoked.
Namespace: Microsoft.AspNet.SignalR.Hubs
Assembly: Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)
Syntax
'Declaration
Function BuildConnect ( _
connect As Func(Of IHub, Task) _
) As Func(Of IHub, Task)
'Usage
Dim instance As IHubPipelineModule
Dim connect As Func(Of IHub, Task)
Dim returnValue As Func(Of IHub, Task)
returnValue = instance.BuildConnect(connect)
Func<IHub, Task> BuildConnect(
Func<IHub, Task> connect
)
Func<IHub^, Task^>^ BuildConnect(
Func<IHub^, Task^>^ connect
)
abstract BuildConnect :
connect:Func<IHub, Task> -> Func<IHub, Task>
function BuildConnect(
connect : Func<IHub, Task>
) : Func<IHub, Task>
Parameters
- connect
Type: System.Func<IHub, Task>
A function to be called when a client connects to a hub.
Return Value
Type: System.Func<IHub, Task>
A wrapped function to be called when a client connects to a hub.