event iAnywhere.MobiLink.Script.ShutdownCallback ShutdownListener( iAnwyhere.MobiLink.Script.ServerContext sc) Member of iAnywhere.MobiLink.Script.ServerContext
服务器关闭时将触发此事件。以下代码示例说明如何使用此事件:
ShutdownCallback callback = new ShutdownCallback(shutdownHandler); _sc.ShutdownListener += callback; public void shutdownHandler(ServerContext sc) { _test_out_file.WriteLine("shutdownPerformed"); } |
Copyright © 2009, iAnywhere Solutions, Inc. - SQL Anywhere 11.0.1 |