public void Initialise() { _log.Debug("Loading " + Name); try { IConfiguration config = Db4oFactory.CloneConfiguration(); config.LockDatabaseFile(false); config.UpdateDepth(2); // open the database connection _theDatabase = Db4oFactory.OpenServer(config, Db4oServiceConstants.DB_FILE_NAME, 0); } catch (Db4oException e) { throw new InitialisationException("Problem loading " + Name, e); } }
public void Start(object coreRef) { _log.Debug("Loading " + Identify()); _theCore = coreRef as PropagandaCore; try { IConfiguration config = Db4oFactory.CloneConfiguration(); config.LockDatabaseFile(false); config.UpdateDepth(2); // open the database connection _theDatabase = Db4oFactory.OpenServer(config, DBServiceConstants.DB_FILE_NAME, 0); } catch (Db4oException e) { throw new InitialisationException("Problem loading " + Identify(), e); } }