Click or drag to resize

ServerChannelHandleStop Method

Called when a stop message is received.

Namespace:  OBCOM.NetSwitchLib.Servers
Assembly:  OBCOM.NetSwitchLib (in OBCOM.NetSwitchLib.dll) Version: 1.48.7760.35650 (1.48.7760.35650)
Syntax
protected virtual void HandleStop(
	string reason
)

Parameters

reason
Type: SystemString
Describes the reason why this server is being stopped.
Exceptions
ExceptionCondition
ArgumentNullExceptionreason is null.
Remarks

A stop message is sent just before the communication channel is closed. After processing this message, the execute method unblocks and returns to it's caller. This usually results in the end of the execution of this server.

This method is meant to be overridden by classes that extend ServerChannel. This default implementation does nothing.

See Also