예제 #1
0
 public void Store(DictionaryTable data)
 {
     itemHolder.Clear();
     foreach (var memoryItem in data.Items)
     {
         itemHolder.Add(memoryItem.Id, memoryItem);
     }
     tableName = data.Name;
     empty = false;
     OnSotrageChanged ();
 }
 public void Store(DictionaryTable data)
 {
     StoreInternal(data);
     memcacheStorage.Store(data);
 }
 private void StoreInternal(DictionaryTable data)
 {
     File.WriteAllText(FilePath, GetJsonData(data), Encoding.UTF8);
 }
 public SimpleDictionarySourceSupplier(string name, IEnumerable<DictionaryItem> items, IEnumerable<string> sourceList)
 {
     this.source = new DictionaryTable(name, items.ToArray());
     this.sourceList = sourceList;
 }