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