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
- hub
Type: Microsoft.AspNet.SignalR.Hubs.IHub
The hub the client has connected to.
Return Value
Type: System.Boolean
true, if the connect components of later added modules and the OnConnected() method should be executed; false, otherwise.