예제 #1
0
 public void Save()
 {
     FileController.SaveAs("coflnet_keyPairs", keys);
     FileController.SaveAs("signingKeys", signingKeyPairs);
 }
예제 #2
0
 /// <summary>
 /// Sets the value.
 /// Objects save this way have to have DataContract or <see cref="MessagePack.MessagePackObjectAttribute"/> attribute
 /// </summary>
 /// <param name="key">Key.</param>
 /// <param name="value">Value.</param>
 /// <typeparam name="T">The 1st type parameter.</typeparam>
 public static void SetValue <T>(string key, T value)
 {
     FileController.SaveAs(SaveKeyWithPrefix(key), value);
 }