Beispiel #1
0
        public void Commit()
        {
            if (_committed)
            {
                return;
            }

            _writeSession.Flush();

            _postingsWriter.Dispose();
            _compoundFile.Dispose();
            _writeSession.Dispose();

            var fileName = Path.Combine(_directory, _ix.VersionId + ".ix");

            _ix.Serialize(fileName);

            _committed = true;
        }
        public void Dispose()
        {
            WriteSession.Commit();

            WriteSession.Dispose();
        }