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

SQL Anywhere 10.0.1 » MobiLink - Server Administration » Writing Synchronization Scripts in .NET » MobiLink server API for .NET reference » ServerContext interface

ShutDown method Next Page

ShutdownListener method


Syntax

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

Remarks

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" );
}