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(); }
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)); } }