Пример #1
0
        public void Stop()
        {
            m_databaseFileWriter.Dispose();
            m_databaseFileWriter = null;

            m_databaseFileReader.Dispose();
            m_databaseFileReader = null;

            m_documentStore = null;

            m_pendingTransaction.Clear();
            m_pendingTransaction = null;

            m_currentTransactionId = 0;
            DBTimeStamp = 0;
        }
Пример #2
0
        public void Start()
        {
            m_databaseFileWriter = m_writerFactory(FileName);
            m_databaseFileReader = m_readerFactory(FileName);

            m_cacheProvider = m_cacheProviderFactory(FileName);

            ulong timestamp;

            m_documentStore = new DocumentStore(m_databaseFileReader.GetDocuments(out timestamp));

            DBTimeStamp = timestamp;
        }