Exemplo n.º 1
0
 /// <summary>
 /// Terminates the connections after finishing the operation.
 /// </summary>
 private void TeardownConnection()
 {
     if (_globalConnection != null)
     {
         _globalConnection.Close();
         _globalConnection = null;
     }
 }
Exemplo n.º 2
0
 /// <summary>
 /// Terminates the connections after finishing the operation.
 /// </summary>
 private void TeardownConnection()
 {
     // Close connection.
     if (_localConnection != null)
     {
         _localConnection.Close();
     }
 }
        /// <summary>
        /// Terminates connections to target databases.
        /// </summary>
        private void TeardownConnections()
        {
            if (_localConnectionTarget != null)
            {
                _localConnectionTarget.Close();
            }

            if (_localConnectionSource != null)
            {
                _localConnectionSource.Close();
            }

            if (_globalConnection != null)
            {
                _globalConnection.Close();
            }
        }