コード例 #1
0
 protected void OpenDictionary()
 {
     persistentSource = new FileBasedPersistentSource(Path.GetTempPath(), "test_");
     aggregateDictionary = new AggregateDictionary(persistentSource, 2);
     persistentDictionaryOne = aggregateDictionary[0];
     persistentDictionaryTwo = aggregateDictionary[1];
 }
コード例 #2
0
        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();
        }
コード例 #3
0
 protected void OpenDictionary()
 {
     persistentSource = new FileBasedPersistentSource(tempPath, "test_");
     aggregateDictionary = new AggregateDictionary(persistentSource, 1);
     persistentDictionary = aggregateDictionary[0];
 }