public void CloseResultCache() { lock (this) { if (this._resultCache != null) { try { this._resultCache.Close(false); } catch (CoreException) { } this._resultCache = null; } } }
public DataFileCacheSession GetResultCache() { if (this._resultCache == null) { string tempDirectoryPath = this._database.logger.GetTempDirectoryPath(); if (tempDirectoryPath == null) { return(null); } try { this._resultCache = new DataFileCacheSession(); this._resultCache.InitParams(this._database, tempDirectoryPath + "/session_" + this._session.GetId()); this._resultCache.Open(false); } catch (Exception) { return(null); } } return(this._resultCache); }