public JsonCiphertextDatastore(Guid userId, Func<string> load, Action<string> persist)
     : base(userId)
 {
     _jsonCiphertexts = JsonConvert.DeserializeObject<JsonCiphertexts>(load())
         ?? new JsonCiphertexts();
     _persist = persist;
 }
Exemple #2
0
 public JsonCiphertextDatastore(Guid userId, Func <string> load, Action <string> persist) : base(userId)
 {
     _jsonCiphertexts = JsonConvert.DeserializeObject <JsonCiphertexts>(load())
                        ?? new JsonCiphertexts();
     _persist = persist;
 }