Esempio n. 1
0
        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);
            }
        }
Esempio n. 2
0
        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);
            }
        }