Наследование: IOperation
Пример #1
0
 internal void Close()
 {
     if (!IsActive)
         return;
     try
     {
         DbClose operation = new DbClose(this.Database);
         ExecuteOperation(operation);
     }
     catch { }
     finally
     {
         Destroy();
     }
 }
Пример #2
0
        internal void Close()
        {
            SessionId = -1;

            DbClose operation = new DbClose();
            ExecuteOperation(operation);

            if ((_networkStream != null) && (_socket != null))
            {
                _networkStream.Close();
                _socket.Close();
            }

            _networkStream = null;
            _socket = null;
        }