From cdf08eef37ad4bc0c9d6c9dd9dfd51a84e60eb73 Mon Sep 17 00:00:00 2001 From: Achim Ismaili Date: Mon, 21 May 2018 17:52:24 +0200 Subject: [PATCH] Set OrigoDb to completely be in memory, so that no directory is created. see https://github.com/DevrexLabs/OrigoDB/issues/24 --- src/FeatureAdmin/Repository/FeatureRepository.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/FeatureAdmin/Repository/FeatureRepository.cs b/src/FeatureAdmin/Repository/FeatureRepository.cs index 30334b1..0d477d0 100644 --- a/src/FeatureAdmin/Repository/FeatureRepository.cs +++ b/src/FeatureAdmin/Repository/FeatureRepository.cs @@ -25,8 +25,8 @@ public FeatureRepository(IEventAggregator eventAggregator var config = new EngineConfiguration(); config.PersistenceMode = PersistenceMode.ManualSnapshots; // see https://github.com/DevrexLabs/OrigoDB/issues/24 - // config.SetCommandStoreFactory(cfg => new OrigoDB.Core.Test.InMemoryCommandStore(cfg)); - // config.SetSnapshotStoreFactory(cfg => new OrigoDB.Core.Test.InMemorySnapshotStore(cfg)); + config.SetCommandStoreFactory(cfg => new OrigoDB.Core.Test.InMemoryCommandStore(cfg)); + config.SetSnapshotStoreFactory(cfg => new OrigoDB.Core.Test.InMemorySnapshotStore(cfg)); store = Db.For(config); this.eventAggregator = eventAggregator;