Share via


IHubPipelineInvoker.Disconnect Method

.NET Framework 4

To be called when a client disconnects from the HubDispatcher for each IHub the client was connected to. By default, this results in the IHub 's OnDisconnected method being invoked.

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

Syntax

'Declaration
Function Disconnect ( _
    hub As IHub _
) As Task
'Usage
Dim instance As IHubPipelineInvoker 
Dim hub As IHub 
Dim returnValue As Task 

returnValue = instance.Disconnect(hub)
Task Disconnect(
    IHub hub
)
Task^ Disconnect(
    IHub^ hub
)
abstract Disconnect : 
        hub:IHub -> Task
function Disconnect(
    hub : IHub
) : Task

Parameters

Return Value

Type: System.Threading.Tasks.Task
Returns Task.

See Also

Reference

IHubPipelineInvoker Interface

Microsoft.AspNet.SignalR.Hubs Namespace