Пример #1
0
 public virtual void Shutdown()
 {
     if (!m_Initialized)
     {
         return;
     }
     CloseAll();
     m_Writer          = null;
     m_Reader          = null;
     m_Initialized     = false;
     transactionsAdded = null;
 }
Пример #2
0
        public virtual bool Init()
        {
            if (m_Initialized)
            {
                return(true);
            }

            MakeDBFolder();

            m_Writer = new TransactionWriter(m_FilePath, HeaderSize);
            var opened = m_Writer.Open();

            m_Reader = new TransactionReader(m_FilePath, HeaderSize);
            opened  &= OpenReader();

            FixHeader();

            m_Initialized = opened;
            return(opened);
        }