Click or drag to resize

ProtocolSocketRegisterClosing Method

Registers a function to call when Close has been called but before the socket has been closed.

Namespace:  Demo3D.Net
Assembly:  Demo3D.IO (in Demo3D.IO.dll) Version: 18.04.00
Syntax
C#
public void RegisterClosing(
	Func<bool, ProtocolSocket, Object?, Task> closingDelegate,
	Object? userState = null
)

Parameters

closingDelegate
Type: SystemFuncBoolean, ProtocolSocket, Object, Task
The delegate to call.
userState (Optional)
Type: SystemObject
Parameter to pass back to the callback.
Remarks
Exceptions thrown by delegates will be ignored.
See Also