Udostępnij za pośrednictwem


HubPipelineModule.OnBeforeDisconnect Method

.NET Framework 4

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)

Syntax

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

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

Parameters

Return Value

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

See Also

Reference

HubPipelineModule Class

Microsoft.AspNet.SignalR.Hubs Namespace