protected void OpenDictionary() { persistentSource = new FileBasedPersistentSource(Path.GetTempPath(), "test_"); aggregateDictionary = new AggregateDictionary(persistentSource, 2); persistentDictionaryOne = aggregateDictionary[0]; persistentDictionaryTwo = aggregateDictionary[1]; }
public AggregateDictionary(IPersistentSource persistentSource, int countOfDictionaries) { this.persistentSource = persistentSource; dictionaries = new PersistentDictionary[countOfDictionaries]; for (var i = 0; i < countOfDictionaries; i++) { dictionaries[i] = new PersistentDictionary(persistentSource) { DictionaryId = i }; } Initialze(); }
protected void OpenDictionary() { persistentSource = new FileBasedPersistentSource(tempPath, "test_"); aggregateDictionary = new AggregateDictionary(persistentSource, 1); persistentDictionary = aggregateDictionary[0]; }