Esempio n. 1
0
        protected void OpenDictionary()
        {
            persistentSource = new FileBasedPersistentSource(Path.GetTempPath(), "test_", TransactionMode.Lazy);
            aggregateDictionary = new AggregateDictionary(persistentSource);

            persistentDictionaryOne = aggregateDictionary.Add(new PersistentDictionary(persistentSource, JTokenComparer.Instance));
            persistentDictionaryTwo = aggregateDictionary.Add(new PersistentDictionary(persistentSource, JTokenComparer.Instance));

            aggregateDictionary.Initialze();
        }
Esempio n. 2
0
 protected void OpenDictionary()
 {
     persistentSource = new FileBasedPersistentSource(tempPath, "test_", TransactionMode.Safe);
     aggregateDictionary = new AggregateDictionary(persistentSource);
     persistentDictionary = aggregateDictionary.Add(new PersistentDictionary(persistentSource, JTokenComparer.Instance));
     aggregateDictionary.Initialze();
 }