Click or drag to resize

ClientShutdown Method

Starts an asynchronous shutdown of the client.

All users and associated sessions will be removed, all sockets closed, all services shut down and other internal resources released. When shutdown is complete, the ShutdownCompleted event will be fired. When this occurs it is safe to dispose of the client.

Namespace:  Avaya.ClientServices
Assembly:  AvayaClientServices (in AvayaClientServices.dll) Version: 550.0.60.0
Syntax
C#
public void Shutdown(
	bool gracefulShutdown
)

Parameters

gracefulShutdown
Type: SystemBoolean
True if an attempt should be made to disconnect users from servers, to wait for signaling completed, before cleanup of local resources (a graceful shutdown). False if local-only shutdown should be performed (an ungraceful shutdown).
Remarks
Shutdown may be graceful or ungraceful from the signaling perspective. In a graceful shutdown, it will attempt to disconnect all established connections with servers and to unregister users with servers if applicable, before proceeding with shutdown and cleanup of internal resources. It will wait to ensure that all the required signaling is exchanged with the servers before the shutdown operation is reported as complete.This graceful shutdown operation may take some time as it may require waiting on timeouts if the server or remote end of sessions are unreachable or unresponsive. In an ungraceful shutdown, only shutdown of local services and local resource cleanup are performed.
See Also