コード例 #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 DoConfigure(IConfigSectionNode node)
        {
            base.DoConfigure(node);
            DisposeAndNull(ref m_Bundled);
            if (node == null)
            {
                return;
            }

            var nbundled = node[CONFIG_BUNDLED_MONGO_SECTION];

            if (nbundled.Exists)
            {
                m_Bundled = FactoryUtils.MakeAndConfigureDirectedComponent <BundledMongoDb>(this, nbundled, typeof(BundledMongoDb));
            }
        }