示例#1
0
        /// <summary>
        /// Close, and free the memory of the drivers.</summary>
        public void CloseAll()
        {
            this.Disconnect();

            if (!isConnected)
            {
                isInitialized = false;
            }

            //Flush the logs
            Status.FlushLog();
        }
示例#2
0
        } //END Read Function

        /// <summary>
        /// Close all connections after workers are stopped.
        /// </summary>
        public int CloseALL()
        {
            if (MasterMySQL != null)
            {
                MasterMySQL.Disconnect();
            }
            if (BackupMySQL != null)
            {
                BackupMySQL.Disconnect();
            }

            Status.FlushLog();
            return(-1);
        }