internal void Close() { if (!IsActive) return; try { DbClose operation = new DbClose(this.Database); ExecuteOperation(operation); } catch { } finally { Destroy(); } }
internal void Close() { SessionId = -1; DbClose operation = new DbClose(); ExecuteOperation(operation); if ((_networkStream != null) && (_socket != null)) { _networkStream.Close(); _socket.Close(); } _networkStream = null; _socket = null; }