HubPipelineModule.OnBeforeDisconnect Method

.NET Framework 4.5

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

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

protected virtual bool OnBeforeDisconnect(
	IHub hub
)

Parameters

hub
Type: Microsoft.AspNet.SignalR.Hubs.IHub
The hub the client has disconnected from.

Return Value

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