Partager via


HubPipelineModule.OnBeforeReconnect Method

.NET Framework 4

This method is called before the reconnect components of any modules added later to the IHubPipeline are executed. If this returns false, then those later-added modules and the OnReconnected() method will not be run.

Namespace:  Microsoft.AspNet.SignalR.Hubs
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Protected Overridable Function OnBeforeReconnect ( _
    hub As IHub _
) As Boolean
'Usage
Dim hub As IHub 
Dim returnValue As Boolean 

returnValue = Me.OnBeforeReconnect(hub)
protected virtual bool OnBeforeReconnect(
    IHub hub
)
protected:
virtual bool OnBeforeReconnect(
    IHub^ hub
)
abstract OnBeforeReconnect : 
        hub:IHub -> bool  
override OnBeforeReconnect : 
        hub:IHub -> bool
protected function OnBeforeReconnect(
    hub : IHub
) : boolean

Parameters

Return Value

Type: System.Boolean
true, if the reconnect components of later added modules and the OnReconnected() method should be executed; false, otherwise.

See Also

Reference

HubPipelineModule Class

Microsoft.AspNet.SignalR.Hubs Namespace