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

SQL Anywhere 11.0.1 (Français) » MobiLink - Server Administration » MobiLink Server APIs » Writing synchronization scripts in .NET » MobiLink server API for .NET reference » ServerContext interface

 

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