IHubPipelineModule::BuildDisconnect Method

.NET Framework 4.5

Wraps a function that is 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)

Func<IHub^, Task^>^ BuildDisconnect(
	Func<IHub^, Task^>^ disconnect
)

Parameters

disconnect
Type: System::Func<IHub, Task>
A function to be called when a client disconnects from a hub.

Return Value

Type: System::Func<IHub, Task>
A wrapped function to be called when a client disconnects from a hub.
Show: