Closing Connections

Clean up connections from the generated database instance prior to application shutdown.

  1. To release an opened application connection, stop the messaging channel by invoking the application instance's StopConnection method.
    app.StopConnection(<timeout_value>);
  2. Use the CloseConnection method to close all database connections for this package and release all resources allocated for those connections. This is recommended to be part of the application shutdown process.