/// <summary>
 /// Contructor
 /// </summary>
 /// <param name="path"></param>
 /// <param name="dictName"></param>
 /// <param name="keyEncoderDecoder"></param>
 /// <param name="valueEncoderDecoder"></param>
 public OnDiskDictionary(string path, string dictName, IEncoderDecoder <TKey> keyEncoderDecoder, IEncoderDecoder <TValue> valueEncoderDecoder)
 {
     System.IO.Directory.CreateDirectory(path);
     this.keyED      = keyEncoderDecoder;
     this.valueED    = valueEncoderDecoder;
     this.database   = new LiteDatabase(Path.Join(path, dictName + ".bin"));
     this.dictName   = dictName;
     this.collection = this.database.GetCollection <DBObject <TKey> >(dictName);
 }
Beispiel #2
0
 public HomeController(IEncoderDecoder converter)
 {
     _converter = converter;
 }