Share via


HubPipelineModule.OnBeforeConnect Method

.NET Framework 4

This method is called before the connect components of any modules added later to the IHubPipeline are executed. If this returns false, then those later-added modules and the OnConnected() 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 OnBeforeConnect ( _
    hub As IHub _
) As Boolean
'Usage
Dim hub As IHub 
Dim returnValue As Boolean 

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

Parameters

Return Value

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

See Also

Reference

HubPipelineModule Class

Microsoft.AspNet.SignalR.Hubs Namespace