HubPipelineModule.OnBeforeConnect Method

.NET Framework 4.5

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)

protected virtual bool OnBeforeConnect(
	IHub 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.