示例#1
0
        private void btnStart_Click(object sender, EventArgs e)
        {
            if (m_Bdb == null)
            {
                m_Bdb = new BundledMongoDb(Azos.Apps.ExecutionContext.Application);

                m_Bdb.MongoBinPath = @"C:\mongo\4.0\bin";

                m_Bdb.Mongo_directoryperdb = false;
                m_Bdb.Mongo_dbpath         = @"c:\data\bundled";

                m_Bdb.ComponentLogLevel = Azos.Log.MessageType.Debug;
            }
            m_Bdb.Start();
        }
示例#2
0
        protected override void DoStart()
        {
            base.DoStart();

            if (m_Bundled != null)
            {
                m_Bundled.Start();
                m_LogDb   = m_Bundled.GetDatabase(m_DbNameLog);
                m_InstrDb = m_Bundled.GetDatabase(m_DbNameInstr);
            }
            else
            {
                m_LogDb   = App.GetMongoDatabaseFromConnectString(m_CsLogDatabase);
                m_InstrDb = App.GetMongoDatabaseFromConnectString(m_CsInstrDatabase);
            }
        }
示例#3
0
 protected override void DoStart()
 {
     base.DoStart();
     m_DBMS.Start();
 }