Click here to view and discuss this page in DocCommentXchange. In the future, you will be sent there automatically.

SQL Anywhere 11.0.0 » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in .NET » MobiLink server API for .NET reference » ServerContext interface


ShutdownListener method

event iAnywhere.MobiLink.Script.ShutdownCallback 
  iAnwyhere.MobiLink.Script.ServerContext sc)
Member of iAnywhere.MobiLink.Script.ServerContext

This event is triggered on shutdown. The following code is an example of how to use this event:

ShutdownCallback callback = new ShutdownCallback( shutdownHandler );
_sc.ShutdownListener += callback; 
public void shutdownHandler( ServerContext sc )
_test_out_file.WriteLine( "shutdownPerformed" );