private DefragmentConfig DefragmentConfig(MemoryStorage storage) { DefragmentConfig defragConfig = new DefragmentConfig(Uri, TempFile(), new InMemoryIdMapping ()); defragConfig.Db4oConfig(Config(storage)); defragConfig.BackupStorage(BackupStorage()); return(defragConfig); }
public void ChangeBackupStorage() { // #example: Use a separate storage for the backup DefragmentConfig config = new DefragmentConfig("database.db4o"); config.BackupStorage(new FileStorage()); Defragment.Defrag(config); // #end example }